Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: RFC: "Best Practices" code review section

by talexb (Canon)
on Aug 05, 2005 at 01:57 UTC ( #481060=note: print w/replies, xml ) Need Help??


in reply to RFC: "Best Practices" code review section

my $fh; open($fh, '<', $filename) or die "can't open $filename: $!"

Maybe it's the QA or documentatino guy in me coming out (Back! back!), but I'd much rather see the error message say something like Can't open $filename for reading: $!. Then again, I find it's very rare that I have a filehandle open longer than a dozen lines of code, so I'm not sure I would ever have need of your improvement.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://481060]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2020-06-01 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?