Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Perl6: S2 identifier and $ special var questions

by TimToady (Parson)
on Sep 14, 2011 at 18:19 UTC ( #925973=note: print w/replies, xml ) Need Help??


in reply to Re^2: Perl6: S2 identifier and $ special var questions
in thread Perl6: S2 identifier and $ special var questions

You may not start an identifier with - like that; hyphens and apostrophes are only allowed internally.

In theory one can declare or use any name you like using Perl 6's explicit symbolic ref notation:

my $::("-O'Malley's") = 42; say $::("-O'Malley's");
However, neither implementation does constant folding well enough yet to recognize these as a static variable names.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://925973]
help
Chatterbox?
1nickt used to be in a meatspace monastery, in EU, with lots of wanderers from all over the world ...
[karlgoethebier]: 1nickt: Thanks. Now i know what "meatspace" means...
marto is glad to see others advising against learning CGI, unless someone really has to :P
[karlgoethebier]: he,he! literally it's "Fleischraum"

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (10)
As of 2017-12-13 13:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (367 votes). Check out past polls.

    Notices?