|
|
|
Clear questions and runnable code get the best and fastest answer |
|
| PerlMonks |
Re: Re: Scoping issues with code evaluation asserstions?by Cirollo (Friar) |
| on Jun 19, 2003 at 18:56 UTC ( #267306=note: print w/ replies, xml ) | Need Help?? |
|
That was my first thought, but it didn't make much sense to me. Maybe my understanding of scoping isn't quite as good as I thought, but I thought that you had to declare a variable outside of the scope of the sub in order to create a closure. Could it be that the one-time compilation of the regex somehow causes the closure? Also, saying local $ret = ''; breaks under strict:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||