Think about Loose Coupling | |
PerlMonks |
Re: Re: List-to-Range generationby japhy (Canon) |
on Jun 11, 2001 at 21:17 UTC ( [id://87583]=note: print w/replies, xml ) | Need Help?? |
Almost.
The $+ refers to the last successful captured pattern, and that capture must have been closed. So the first time the (??{...}) is reached, $+ is $1's value. The next time, it's $2's (first) value, and then $2's new value, and so on. japhy -- Perl and Regex Hacker
In Section
Cool Uses for Perl
|
|