Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by Anonymous Monk
on Jan 05, 2015 at 09:36 UTC ( #1112158=note: print w/replies, xml ) Need Help??


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

wow this is mind-bending! can you please go through it in detail?
  • Comment on Re^2: Difference between two arrays - is there a better way?

Replies are listed 'Best First'.
Re^3: Difference between two arrays - is there a better way?
by Anonymous Monk on May 12, 2016 at 18:54 UTC
    @cities = (qw(London Oslo Paris Amsterdam Berlin )); @visited = (qw(Berlin Oslo)); say "Still need to visit:", grep { ! ({ $_, 0 } ~~ @visited) } @cities;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2019-02-21 02:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I use postfix dereferencing ...









    Results (108 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!