I want match
my @array = ( 'Tree' , 'JoeTree');
foreach (@array ) {
if ( $_ =~ /^(Joe)Tree/gi) {
print "matched $_";
}
}
It matching only JoeTree. It's not matching Tree ?
I want match
my @array = ( 'Tree' , 'JoeTree');
foreach (@array ) {
if ( $_ =~ /^(Joe)Tree/gi) {
print "matched $_";
}
}
It matching only JoeTree. It's not matching Tree ?