Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^3: Difference between two arrays - is there a better way?

by Anonymous Monk
on May 12, 2016 at 18:54 UTC ( #1162891=note: print w/replies, xml ) Need Help??


in reply to Re^2: Difference between two arrays - is there a better way?
in thread Difference between two arrays - is there a better way?

@cities = (qw(London Oslo Paris Amsterdam Berlin )); @visited = (qw(Berlin Oslo)); say "Still need to visit:", grep { ! ({ $_, 0 } ~~ @visited) } @cities;

Replies are listed 'Best First'.
Re^4: Difference between two arrays - is there a better way?
by SimonSaysCake (Beadle) on Jun 28, 2016 at 17:42 UTC

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2019-10-17 09:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?