Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: vowel_search

by $code or die (Deacon)
on Aug 17, 2001 at 06:13 UTC ( #105607=note: print w/replies, xml ) Need Help??

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.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://105607]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (2)
As of 2021-12-08 23:26 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (36 votes). Check out past polls.