in reply to $# -variable?

For future reference, I offer the following as simply one example of our very fine collection of Tutorials:

Perl Special Variables Quick Reference

HTH,

planetscape