Although a comparison might be more appropriate e.gmy @selected_names = grep(!/todd/, @all_names);
See. perlop for more info.my @selected_names = grep { $_ ne 'todd' } @all_names;
_________
broquaint
In reply to Re: Match all words except one
by broquaint
in thread Match all words except one
by Perl_User
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |