Update: Added code that didn't post($a) = "abc" =~ /a(b)c/ || 'd'; print $a; # prints 1 ($a) = "abc" =~ /a(b)c/ or 'd'; print $a; # prints 'b'
In reply to Re: Re: Regexp context with ||
by JamesNC
in thread Regexp context with ||
by bsb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |