Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: deleting multiple hash keys

by Lawliet (Curate)
on Mar 01, 2009 at 00:27 UTC ( #747232=note: print w/ replies, xml ) Need Help??


in reply to deleting multiple hash keys

As you already know, scalars are a single value and are represent by a dollar sign. This is why when accessing one value from a hash you use the dollar sign. '@' is associated with multiple values (specifically, arrays, which are multiple scalars). Thus, when accessing multiple scalars from a hash, you use the @ sign.

I believe this is changing in Perl 6 due to the confusion it brings.

And you didn't even know bears could type.


Comment on Re: deleting multiple hash keys

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (10)
As of 2015-07-30 23:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (273 votes), past polls