Front page | perl.perl6.language |
Postings from May 2005
Re: Scoping of $/
Thread Previous
From:
Larry Wall
Date:
May 10, 2005 16:51
Subject:
Re: Scoping of $/
Message ID:
20050510235117.GA30525@wall.org
On Tue, May 10, 2005 at 05:24:30PM -0400, Rick Delaney wrote:
: On Tue, May 10, 2005 at 06:20:44AM -0600, Luke Palmer wrote:
: > Yeah, they're lexical, just like in Perl 5.
:
: Not just like Perl 5, I hope. If it was then the above would print
: "d".
Yes, Perl 5 actually uses an autolocalizing form of dynamic scoping
for the current successful match, but *only* if there was a successful
match. We're intentionally breaking that.
Larry
Thread Previous