- or download this
use strict;
use warnings;
...
foreach (@array) {
print "Matched :$_:\n" if /$value/;
}
- or download this
Matched :revenuebytrafficker:
- or download this
use strict;
use warnings;
...
my @matches = grep {/$value/} @array;
print ("Matched :" . (join ": :", @matches) . ":\n") if @matches;
- or download this
Matched :revenuebytrafficker: :revengebysmoker: