That's my point, I couldn't mentally map this behavior to normal dereferencing mechanics cause it rather feels like a magic feature.
To make it more obvious, theoretically we could have a special syntax for keys and values of a hash ( like e.g. %<hash ).
This would be a similar beast (/me struggling for a name ;)
> In any case, $#$arrayref / $#{$arrayref}ought to be added to the examples there
Definitely!
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
In reply to Re^4: Where is $# fully documented?
by LanX
in thread Where is $# fully documented?
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |