develooper Front page | perl.perl6.language | Postings from May 2005

Re: Scoping of $/

Thread Previous
Larry Wall
May 10, 2005 16:51
Re: Scoping of $/
Message ID:
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.


Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About