Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: The default hash - accident, coincidence or conspiracy?

by tlm (Prior)
on Jun 20, 2005 at 12:34 UTC ( #468310=note: print w/replies, xml ) Need Help??


in reply to The default hash - accident, coincidence or conspiracy?

From perlop (my added emphasis):

Perl variable names may also be a sequence of digits or a single punctuation or control character. These names are all reserved for special uses by Perl; for example, the all‐digits names are used to hold data captured by back references after a regular expression match...

Finally, new in Perl 5.6, Perl variable names may be alphanumeric strings that begin with control characters (or better yet, a caret). These variables must be written in the form "${^Foo}"; the braces are not optional. "${^Foo}" denotes the scalar variable whose name is a con≠trol−"F" followed by two "o"ís. These variables are reserved for future special uses by Perl, except for the ones that begin with "^_" (control−underscore or caret−underscore). No control‐character name that begins with "^_" will acquire a special meaning in any future version of Perl; such names may therefore be used safely.

the lowliest monk

  • Comment on Re: The default hash - accident, coincidence or conspiracy?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://468310]
help
Chatterbox?
[LanX]: interpolation! like in a "string"
[Lady_Aleena]: LanX, I just never thought I would be explaining perl regex to others. It is usually others explaining why a regex isn't working to me.
[Discipulus]: congratulations shmem! (was my last upvote? ;=)

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2017-04-28 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (520 votes). Check out past polls.