Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Looking for function similer to member() in SKILL

by jbrugger (Parson)
on Jun 21, 2005 at 08:32 UTC ( [id://468595]=note: print w/replies, xml ) Need Help??


in reply to Looking for function similer to member() in SKILL

I assume you mean skill?
I'd use a hashtable in stead of an array, and let the key be the match you need, and the value 1.
open (FH,"filename here") or die; while ( my $line = <FH> ) { if ( $youhash->{$line} ) { #he, a match! } }
"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-25 20:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found