#!/opt/perl/bin/perl -w use strict; my @badwords = qw /jerk store king/; my @myarray = qw /jerry wash king kong store when jerk/; @@ {@myarray} = (); delete @@ {@badwords}; @myarray = keys (%@); print "@myarray\n"; __END__
-- Abigail
In reply to Re: Easy one: removing elements of one array from another...
by Abigail
in thread Easy one: removing elements of one array from another...
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |