in reply to Re^2: Common Perl Pitfalls
in thread Common Perl Pitfalls
Considering that Joe_'s example uses the handle INPUTFILE, I don't have any problems with the implication, and I really don't see the need to come up with the snobby term correct idiom. (You consider a piece of code with error handling to be correct idiom? You're fired).
I really like the second one, thanks. Not for production use, of course. :)Why not? It's not significant different from your correct idiom. It misses error handling (but then, so does your correct idiom), but that's easily handled: just add a // die "slurp: $!";.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Common Perl Pitfalls
by dwalin (Monk) on Apr 10, 2012 at 23:50 UTC | |
by JavaFan (Canon) on Apr 10, 2012 at 23:57 UTC | |
by dwalin (Monk) on Apr 11, 2012 at 00:24 UTC | |
by JavaFan (Canon) on Apr 11, 2012 at 00:37 UTC |
In Section
Meditations