develooper Front page | perl.perl5.porters | Postings from January 2014

[perl #120941] The => operator doesn't quote v-strings in "use constant v1 => 42"

Thread Previous
From:
Father Chrysostomos via RT
Date:
January 7, 2014 15:12
Subject:
[perl #120941] The => operator doesn't quote v-strings in "use constant v1 => 42"
Message ID:
rt-4.0.18-3755-1389107519-1209.120941-15-0@perl.org
On Mon Jan 06 23:21:34 2014, jv wrote:
> Leon Timmermans <fawaka@gmail.com> writes:
> 
> > use optionally takes a version, so that is parsed as «use <module>
> > <version> <expression>», and => is not a valid start of an expression.
> 
> The question is: is this desired (a.o.t. actual) behaviour, or should
> 
>   use constant v1 => 1;
> 
> DWIM?

Probably, especially considering that this dwims:

use constant v1=> 1;

-- 

Father Chrysostomos


---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=120941

Thread Previous


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