Perl: the Markov chain saw | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Well the first is readable and the second one is too much magic for my tastes. The second requires a level of Perl knowledge you can't always assume in your fellow programmer. Also, the first option gives you the chance to test your call to open for any failures ( permissions, file doesn't exist, etc ) and handle them. In short the first version is more correct, the second should be relegated to perl one liners...
Frank Wiles <frank@revsys.com> In reply to Re: anonymous filehandes?
by ides
|
|