http://qs321.pair.com?node_id=105607


in reply to vowel_search

Not sure I'd want to load 17000 lines into an array in one go. I'd rather do something like this:
#!/usr/bin/perl while (<>) { if (/a/i && /e/i && /i/i && /o/i && /u/i) { print; } }
update: Ahh, CheeseLord gave similar advice. Should have read all replies before posting :)

Error: Keyboard not attached. Press F1 to continue.

Replies are listed 'Best First'.
Re: Re: vowel_search
by chainsawed (Novice) on Aug 18, 2001 at 00:33 UTC
    Thank you $code or die, Your optimization took my total parse time from 5.2 seconds with my code to 2.9 seconds. I bow to my perlmonk teachers.