Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Re: if (open(FH, $path)) { ?by jdporter (Paladin) |
on May 03, 2004 at 15:17 UTC ( [id://350043]=note: print w/replies, xml ) | Need Help?? |
I don't see the point in testing whether a file is readable before attempting to open it for reading. It both adds unnecessary verbosity to the code and introduces the race condition as others have pointed out.
In Section
Seekers of Perl Wisdom
|
|