develooper Front page | perl.perl5.porters | Postings from March 2003

Re: [perl #21744] Deparse bug: "\::" deparsed as "::"

Thread Previous | Thread Next
From:
Enache Adrian
Date:
March 29, 2003 09:48
Subject:
Re: [perl #21744] Deparse bug: "\::" deparsed as "::"
Message ID:
20030329174541.GA8138@ratsnest.hole
On Sat, Mar 29, 2003 at 06:50:55PM +0200, I wrote:
> -	    || ($last =~ /^[{\[\w_]/ &&
> +	    || ($last =~ /^[:{\[\w_]/ &&

And <'> should be probably there too.
-	    || ($last =~ /^[:{\[\w_]/ &&
+	    || ($last =~ /^[:'{\[\w_]/ &&

$ perl -MO=Deparse
"${a}'b"
^D
"$a'b";

which perl will parse as $a::b ...

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About