Not following why this matches everything, or
if it's the best way, can someone advise?:
@array1=('Bill', 'Betty', 'Fred', 'Freda')
sub MatchIt($stringtest){
foreach(@array1){
if($_ =~ $stringtest){
print "Match: $_\n";
}
}
}
&MatchIt(/re/);
if it's the best way, can someone advise?:
@array1=('Bill', 'Betty', 'Fred', 'Freda')
sub MatchIt($stringtest){
foreach(@array1){
if($_ =~ $stringtest){
print "Match: $_\n";
}
}
}
&MatchIt(/re/);