藤 吾郎 > PerlIO-Util > PerlIO::creat

Download:
PerlIO-Util-0.72.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  1
View/Report Bugs
Source  

NAME ^

PerlIO::creat - Creates a file if it doesn't exist

SYNOPSIS ^

        open my $io,  '+< :creat', 'foo.txt';

DESCRIPTION ^

PerlIO::creat appends O_CREAT to the open flags.

When you'd like to create a file but not to truncate it, you can use the :creat layer with an open mode '<' or '+<'.

This is a pseudo layer that doesn't be pushed on the layer stack.

SEE ALSO ^

PerlIO::Util.

PerlIO::excl.

"sysopen" in perlfunc.

AUTHOR ^

Goro Fuji (藤 吾郎) <gfuji (at) cpan.org>

LICENSE AND COPYRIGHT ^

Copyright (c) 2008, Goro Fuji <gfuji (at) cpan.org>. Some rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: