PerlIO::via::trap - PerlIO layer to trap write


PerlIO-via-trap documentation  | view source Contained in the PerlIO-via-trap distribution.

Index


NAME

Top

PerlIO::via::trap - PerlIO layer to trap write

SYNOPSIS

Top

 use PerlIO::via::trap;

 open( my $in,'<:via(trap)','file.txt' );	# no effect
 open( my $out,'>:via(trap)','file.txt' );	# write will cause confess

 use PerlIO::via::trap ('open');		# auto trap

 $PerlIO::via::trap::PASS = 1;			# disable trap

DESCRIPTION

Top

This module implements a PerlIO layer that captures attemps to write to files. This is especially useful for debugging modules that are corrupting files.

CAVEATS

Top

Note that the PERLIO environment variable does not work with :via modules, so you need to override core::open if you don't want to change the modules are you trying to fix.

SEE ALSO

Top

PerlIO::via

AUTHORS

Top

Chia-liang Kao <clkao@clkao.org>

COPYRIGHT

Top


PerlIO-via-trap documentation  | view source Contained in the PerlIO-via-trap distribution.