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


PerlIO-Util documentation  | view source Contained in the PerlIO-Util distribution.

Index


NAME

Top

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

SYNOPSIS

Top

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

DESCRIPTION

Top

PerlIO::excl appends O_EXCL to the open flags.

When you'd like to create a file only if it doesn't exist before, you can use the :excl layer.

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

SEE ALSO

Top

PerlIO::Util.

sysopen in perlfunc.

AUTHOR

Top

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

LICENSE AND COPYRIGHT

Top


PerlIO-Util documentation  | view source Contained in the PerlIO-Util distribution.