in reply to Re^2: Common Perl Pitfalls
in thread Common Perl Pitfalls
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 |