This would return "yes", because the regex will match, and thus will return true, even if there is no parens in the regex.
That's why this works:$_ = "something blah blah"; if (/something/) { print "Ok"; }
In reply to Re: Re3: $1 trap
by Chady
in thread $1 trap
by chunlou
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |