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

Re: checking the matches

by ikegami (Patriarch)
on May 22, 2008 at 09:32 UTC ( [id://687911]=note: print w/replies, xml ) Need Help??


in reply to checking the matches

my %hash = map { split /#/ } @array2; for (@array1) { next if !exists($hash{$_}); print("$hash{$_} = $_\n"); }

Replies are listed 'Best First'.
Re^2: checking the matches
by psini (Deacon) on May 22, 2008 at 10:03 UTC

    Good, if you're sure that @array1 has no duplicated value.

    Rule One: Do not act incautiously when confronting a little bald wrinkly smiling man.

A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

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

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

    No recent polls found