in reply to Re^3: Variable will not stay shared in subroutine
in thread Variable will not stay shared in subroutine

If you really need a nested subroutine for the current scope only, then better use an anonymous one, like already described here by tilly.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery

  • Comment on Re^4: Variable will not stay shared in subroutine