http://www.perlmonks.org?node_id=666837


in reply to Re^4: sub scope question
in thread sub scope question

Making a local variable variable into a semi-global one in order to use it to pass arguments to a function doesn't sound like the right approach to me. For starters, it breaks if the outer function is re-entrant and can break if the inner function is re-entrant, and that's when I normally use nested subs.