in reply to Re^5: How to access a variable inside subroutine?
in thread How to access a variable inside subroutine?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: How to access a variable inside subroutine?
by tobyink (Canon) on Sep 06, 2020 at 12:55 UTC | |
by pryrt (Abbot) on Sep 06, 2020 at 14:53 UTC |