in reply to checking bareword-filehandle
Checking a filehandle is problematic. Why not change your open to something like this:
open FH, '<', 'filename' or do { $failed = 1; warn $! };
Now you've got a reliable Boolean variable rather than fragile hackish testing of the filehandle.
Dave
|
---|
In Section
Seekers of Perl Wisdom