Welcome to the Monastery | |
PerlMonks |
Re^4: csv to hash tableby GrandFather (Saint) |
on Nov 19, 2013 at 20:18 UTC ( [id://1063379]=note: print w/replies, xml ) | Need Help?? |
Why => in split /$field_separator/ => $record? To my eye that says paired item, but there it's just a plain ol' comma and would be clearer as:
Personally I prefer making the record variable explicit, but I'd write the while expression as:
which is a closer match to the magic you get with while (<$filehandle>) {.
True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|