in reply to Re: Re3: $1 trap
in thread $1 trap

NO. This would return "no", because he's not only comparing the
result of the regex, but also the value of the submatch:

"w0rd" =~ /(\d)/ && $1 ? print"Yes": print"no";

The regex matches, so $1 becomes 0. This makes the condition:

(true) && 0 ? print"Yes": print"no";

Which evaluates to false.