Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

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

by Zaxo (Archbishop)
on Jun 21, 2005 at 08:38 UTC ( [id://468596]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @arr = map {qr/\Q$_\E/} @arr;
    my @keepers = do {
        local $" = '|';
        grep { m/@arr/ } <>;
    };
    
  2. or download this
    my (%hsh, @keepers);
    @hsh{@arr} = ();
    while (<>) {
        push @keepers, $_ if grep {exists $hsh{$_}} split;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-18 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found