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


PerlIO-Util documentation Contained in the PerlIO-Util distribution.

Index


Code Index:

NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

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

Top

PerlIO::Util.

PerlIO::excl.

sysopen in perlfunc.

AUTHOR

Top

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

LICENSE AND COPYRIGHT

Top


PerlIO-Util documentation Contained in the PerlIO-Util distribution.

package PerlIO::creat;
use strict;
require PerlIO::Util;
1;
__END__