in reply to Re^2: opening files: link checking and race conditions
in thread opening files: link checking and race conditions
my $lflag = ( -l 'foo' ); # check before opening $lflag or open my $fh, ">>foo" or ErrorHandler( $?, $! ); $lflag = ( -l 'foo' ); # and again after opening unless( $lflag } { # process file } $lflag or close $fh;
One world, one people
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: opening files: link checking and race conditions
by Joost (Canon) on Aug 03, 2005 at 13:32 UTC | |
|
Re^4: opening files: link checking and race conditions
by danderson (Beadle) on Aug 03, 2005 at 22:55 UTC |