in reply to Re^2: Where is $# fully documented?
in thread Where is $# fully documented?
Special function? No.
The a in @a is the identifier part of the variable name; the documentation addresses anywhere you'd put that a, which includes $#a.
Update: hmm, it does say "as part of a variable...name", implying it would only work if $#a is a considered a variable. I shy away from that because, even though it is an assignable lvalue, it really is just an attribute of an array variable. So the doc could use a minor tweak.
In any case, $#$arrayref / $#{$arrayref} ought to be added to the examples there.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Where is $# fully documented?
by LanX (Saint) on Sep 24, 2014 at 09:43 UTC | |
by ikegami (Patriarch) on Sep 24, 2014 at 13:05 UTC |