I want to be able to branch if $mod[1] = 1700 or 1720 or 1760 or 17.....
if(defined($mod[1])) {
if($mod[1] =~ m{1720}) {
print "$mod[1]\n ";
}
the above works. but neither of the two below do.
if(defined($mod[1])) {
if($mod[1] =~ m{^17,\{2}\}) {
print "$mod[1]\n ";
}
if(defined($mod[1])) {
if($mod[1] =~ m{^17}) {
print "$mod[1]\n ";
}
Forgot me dang blasted book at home ...
tks
if(defined($mod[1])) {
if($mod[1] =~ m{1720}) {
print "$mod[1]\n ";
}
the above works. but neither of the two below do.
if(defined($mod[1])) {
if($mod[1] =~ m{^17,\{2}\}) {
print "$mod[1]\n ";
}
if(defined($mod[1])) {
if($mod[1] =~ m{^17}) {
print "$mod[1]\n ";
}
Forgot me dang blasted book at home ...
tks