in reply to opening files: link checking and race conditions
my $lflag; open my $fh, ">>foo" or ErrorHandler( $?, $! ); $lflag = ( -l 'foo' ); unless( $lflag } { # process file } close $fh; # it was opened for append but append only occurred for non +-link case
One world, one people
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: opening files: link checking and race conditions
by Joost (Canon) on Aug 03, 2005 at 12:48 UTC | |
by anonymized user 468275 (Curate) on Aug 03, 2005 at 13:15 UTC | |
by Joost (Canon) on Aug 03, 2005 at 13:32 UTC | |
by danderson (Beadle) on Aug 03, 2005 at 22:55 UTC |