We don't bite newbies here... much | |
PerlMonks |
Re^2: Suggestions to make this code more Perlishby hazylife (Monk) |
on Mar 31, 2014 at 10:50 UTC ( [id://1080382]=note: print w/replies, xml ) | Need Help?? |
Ken, your original solution handles lines like this properly:
whereas s/$re,/$+{field}\037/g will never dequote the last field. One other minor observation: \037 is an atom, so no brackets are needed in s/[\037]+$//;
In Section
Seekers of Perl Wisdom
|
|