Hi,
I have a Perl executable where I pass regexes like below: myPerlScript.pl -input_file myInputFile.txt -pats "^atlas\S+/ || /\/world\s+/ || /\nowhere\s+"
the argument given to pat is used to see if an array key is matching any of these three patterns as below. The array key are some strings we collect from the input_file.
....
....
forach my $hashkey (keys %myHash) {
if($hashkey !~ /$pat/) {
print "no Match $hashkey\n";
}
}
what I am seeing is that the array keys that match atlas, world, or nowhere are also printed out.
I am not able to figure out what my mistake is.
Can you help?
many thanks.
Fung Chi Lu