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