P is for Practical | |
PerlMonks |
Re: Filtering rows with Parse::CSVby AppleFritter (Vicar) |
on Mar 27, 2017 at 18:07 UTC ( [id://1186111]=note: print w/replies, xml ) | Need Help?? |
Off the top of my head and untested:
if (and unless) can act as statement modifiers in Perl, so this will cause the print to be executed only if $myColumn_value isn't equal to the empty string. You will get a warning here if it's undefined, BTW. If that's an issue, use
instead.
In Section
Seekers of Perl Wisdom
|
|