|
|
| No such thing as a small change | |
| PerlMonks |
Re: Perl Idioms Explained - @ary = $str =~ m/(stuff)/gby CountZero (Chancellor) |
| on Sep 15, 2003 at 13:43 UTC ( #291552=note: print w/ replies, xml ) | Need Help?? |
|
One should perhaps add, that the real reason why this magic works is because "=~" binds more thightly than "=", so the regex gets done first and then its results are evaluated in list-context (which is provided by using an array as an L-value). CountZero "If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law
In Section
Meditations
|
|
||||||||||||||||||||||