which I would tend to prefer anyway, even if your second case worked the way you wanted it to.$a = ( "abc" =~ /a(b)c/ ) ? $1 : 'd';
In reply to Re: Regexp context with ||
by graff
in thread Regexp context with ||
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |