Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

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 avoiding work at the Monastery: (2)
As of 2015-11-28 22:58 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (746 votes), past polls