Hi guys,
I was taught this
my (%a, %b); @a{@a} = (); @b{@b} = (); delete @a{@b}; delete @b{@a}; @a = keys %a; @b = keys %b;
to get same elements out but if I want to retain the same elements and remove the different ones, is there a simple method like this?
Thanks.
Desmond
In reply to Further question on removing elements from arrays by sandrider
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |