Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Reading CSV Functionby swl (Parson) |
on Jun 15, 2021 at 03:08 UTC ( [id://11133877]=note: print w/replies, xml ) | Need Help?? |
Just a general piece of advice, but it's best to avoid hand-rolling your own CSV parser. Use Text::CSV instead, preferably with Text::CSV_XS also installed so you get the speed boost. As for handling arguments, you can use Boolean assignment in many cases. For example this
can be written as
(assuming you will never use a 0 as a column separator)
In Section
Seekers of Perl Wisdom
|
|