Perl Monk, Perl Meditation | |
PerlMonks |
Re: Efficient way to do field validationby tobyink (Canon) |
on Jul 31, 2013 at 12:56 UTC ( [id://1047256]=note: print w/replies, xml ) | Need Help?? |
How about something like this...
Produces the following output:
If you've got big files, then you're unlikely to find a faster solution than pairing Text::CSV_XS and Type::Params.
package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
In Section
Seekers of Perl Wisdom
|
|