|
|
| Just another Perl shrine | |
| PerlMonks |
(ar0n) Re: Faster Flat Fileby ar0n (Priest) |
| on Feb 03, 2002 at 04:39 UTC ( #143022=note: print w/ replies, xml ) | Need Help?? |
|
I'd probably try something like this (untested):
I used index, since it's faster than a regex, generally, and you seemed to be simply searching for a substring, not an actual regex. Also, Text::CSV_XS is XS (compiled C) which is usually quite fast (faster than Perl, at any rate). Update: As merlyn pointed out recently, index need not be faster than a regex (thanks for pointing that out, blakem). [ ar0n -- want job (boston) ]
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||