go ahead... be a heretic | |
PerlMonks |
Re: vowel_searchby CheeseLord (Deacon) |
on Aug 17, 2001 at 04:09 UTC ( [id://105576]=note: print w/replies, xml ) | Need Help?? |
Your code at present will disregard a matching string on the first line. In addition, you read in the entire file at once, sucking up a good deal of memory if the file is quite large. Here's another way of doing it:
I only used the character classes there because (I hear) they're faster than /i matches. Could be wrong on that count, though. His Royal Cheeziness
In Section
Cool Uses for Perl
|
|