Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Failed array attemp

by sauoq (Abbot)
on May 13, 2012 at 23:07 UTC ( [id://970357]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for my $x (@x) { push @z, (grep {$_ == $x} @y) ? '+' : '-'; }
    
  2. or download this
    my %k = map {($_, 1)} @y;
    for my $x (@x) { push @z2, (exists $k{$x}) ? '+' : '-'; }
    

Log In?
Username:
Password:

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

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

    No recent polls found