Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: vowel_search

by $code or die (Deacon)
on Aug 17, 2001 at 06:13 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-25 08:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found