in reply to Re: Easy one: removing elements of one array from another...
in thread Easy one: removing elements of one array from another...
#!/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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Easy one: removing elements of one array from another...
by indapa (Monk) on Jun 28, 2001 at 20:33 UTC |