Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Search Algorithm

by BigJoe (Curate)
on Aug 10, 2000 at 17:44 UTC ( #27286=note: print w/ replies, xml ) Need Help??

in reply to Search Algorithm

I would use the great grep command instead of your 3rd loop.
This is out of the Perl Cookbook p 114

@matching = grep { /^gnat/ } `who`
This matches anything that comes out of the who command with the regular expression ^gnat


Learn patience, you must.
Young PerlMonk, craves Not these things.

Comment on Re: Search Algorithm
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (17)
As of 2015-07-31 13:53 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (278 votes), past polls