Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: Perl6: What is "idfirst letter"?

by ikegami (Pope)
on Sep 07, 2011 at 21:12 UTC ( #924682=note: print w/ replies, xml ) Need Help??


in reply to Re: Perl6: What is "idfirst letter"?
in thread Perl6: What is "idfirst letter"?

Well, in Perl5, "[" and U+0001 are allowed as the first (and only) character of an identifier, but I don't think anyone would consider them idfirst. I don't know if Perl6 has such exceptions.


Comment on Re^2: Perl6: What is "idfirst letter"?
Download Code
Re^3: Perl6: What is "idfirst letter"?
by moritz (Cardinal) on Sep 08, 2011 at 05:58 UTC
    No. There are special variables with "weird" names ($/, $!, $) but they aren't identifiers.

    I also don't think that [ counts as an identifier character in Perl 5, because you can't write sub [ { }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://924682]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (16)
As of 2014-10-21 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (103 votes), past polls