Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Difference arrays.

by dreadpiratepeter (Priest)
on Sep 04, 2008 at 19:18 UTC ( [id://709097]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-04-23 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found