A named subroutine is created at compile time, putting them into other subs or loops means begging for trouble.
I've never been a big fan of state, there are not many patterns (if any) which can't be implemented with closed over my declarations.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^6: How to access a variable inside subroutine?
by LanX
in thread How to access a variable inside subroutine?
by pritesh_ugrankar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |