in reply to Difference arrays.

UPDATE: scratch that, didn't read close enough and look at the second example, my bad.
wouldn't (off the top of my head):
my @a = (43,43,44); my @b = (43,43); my %h = map {($_=>1)} @a; delete @h{@b}; print join(",",keys %h);
work?


-pete
"Worry is like a rocking chair. It gives you something to do, but it doesn't get you anywhere."

Replies are listed 'Best First'.
Re^2: Difference arrays.
by Skeeve (Parson) on Sep 04, 2008 at 19:35 UTC

    work? No!

    Try it with the other example of the question.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e