Conditional statement example with regular expressions
#!/usr/bin/perl
$string = "BluE";
if ($string =~ m/^blue$/i || $string =~ m/^green$/i) {
print "found it";
} else {
print "didn't find it";
}
$string = "BluE";
if ($string =~ m/^blue$/i || $string =~ m/^green$/i) {
print "found it";
} else {
print "didn't find it";
}