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

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

Thread Previous | Thread Next
From:
Johan Vromans
Date:
January 7, 2014 07:21
Subject:
Re: [perl #120941] The => operator doesn't quote v-strings in "use constant v1 => 42"
Message ID:
m2d2k4p89e.fsf@phoenix.squirrel.nl
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?

-- Johan

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