in reply to Where is $# fully documented?
The documentation for using references is at http://perldoc.perl.org/perlref.html#Using-References. It does not mention $# at all, but points 1 and 2 there address exactly what you are asking about. In general, the documentation does not strive to cover every possible combination of interacting features.
--
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |
A math joke: r = | |csc(θ)|+|sec(θ)| |-| |csc(θ)|-|sec(θ)| |
In Section
Seekers of Perl Wisdom