my @array = qw(apple pear banana orange grape); if ( my @matches = grep /n/, @array ) { print "@matches\n"; } else { print "NOTHING FOUND\n"; }
In reply to Re: grep and arrays
by j1n3l0
in thread grep and arrays
by purple.mojo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |