in reply to How to access a variable inside subroutine?
Coping with Scoping
NB: this was written before state was introduced, see my for scoping rules.
Cheers Rolf (addicted to the Perl Programming Language :) Wikisyntax for the Monastery