$_ = "13foo"; if($_ == 13) { print "Works\n"; } __OUTPUT__ Works #### my ($first, $rest) = split '', $str, 2; #### $_ = reverse $str; print chop;