#!/usr/bin/perl @A = qw/dog cat squirrel wolf/; @B = qw/dog cat monkey donkey/; undef @C{ @A }; delete @C{ @B }; say for keys %C; __END__ prints: squirrel wolf
In reply to Re^3: Comparing an array against another array
by choroba
in thread Comparing an array against another array
by jaldama
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |