Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: multiple matching in arrays

by Mandrake (Chaplain)
on Aug 01, 2006 at 13:32 UTC ( [id://564993]=note: print w/replies, xml ) Need Help??


in reply to multiple matching in arrays

Please try this. Similar to the answer I had posted for one of your previous question (again related to comparision of arrays)
my @result_arr; (in_array($_,\@array2)) && (push @result_arr, $_) for (@array1); sub in_array { (($_[0] eq $_) ||($_=~m/$_[0]/)) && return ($_=" ") for(@{$_[1]}); }
Thanks.

Log In?
Username:
Password:

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

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

    No recent polls found