>Maybe you're used to some old behavior in Perl, but that doesn't
>appear to be the case in 5.8.8 at least. I get this output:

<snip: output that proves me wrong>



Ah.  Okay, I see why that worked now.  $1, $2 et al are scoped to the
current block, so in this case you are right.  If you were to do two
pattern matches within the same block, though, you would see the
behavior I described.

I learn something new every day, I figured it was the match operator
"resetting" the $1...$N vars and not scoping.

_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to