|
|
| more useful options | |
| PerlMonks |
Re^4: novice with hash/data file questionby johngg (Canon) |
| on Sep 02, 2008 at 14:12 UTC ( [id://708492]=note: print w/replies, xml ) | Need Help?? |
|
As well as the issues with the success of the open and with chomp already pointed out by jwkrahn, you should note that the ($_[0] => $_[1]) is superfluous and could be omitted to get the same result.
Using a lexical filehandle inside the scope of a do would save an explicit close.
Running it.
I hope this is of interest. Cheers, JohnGG
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||