Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: Where is $# fully documented?

by ikegami (Patriarch)
on Sep 24, 2014 at 13:05 UTC ( [id://1101787]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Where is $# fully documented?
in thread Where is $# fully documented?

we could have a special syntax for keys and values of a hash ( like e.g. %<hash ).

It couldn't be a variable since it's a list of values. It wouldn't make sense to give it the syntax of a variable since you couldn't do anything to it that you could do to a variable.

Unless you mean keys in scalar context. That's an lvalue function that returns a magical variable like substr. As such, that could be made into a variable (e.g. keys(%h) = 123; could be made into %#h = 123;).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-23 06:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found