elsif ( $fs =~ /^(?i)\/data\w+$/ || /^(?i)\/tmp\w+$/ ) { print "YIKES, my mother-in-law is here\n"; } ### I also tried $fs =~ /^(\/data\w+|\/tmp\w+)$/i ) ###