in reply to Regexp context with ||
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';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Regexp context with ||
by JamesNC (Chaplain) on Apr 09, 2003 at 02:55 UTC | |
by merlyn (Sage) on Apr 09, 2003 at 03:48 UTC |