Perrin Harkins wrote:
Good guess, but that's not what is happening here. What our flowery friend has stumbled onto is a closure. When a subroutine references a "my" variable that was declared outside of that subroutine's scope, the sub will keep a private copy of that variable. If it wasn't a closure,
Ah, missed that bit in Perl 101... sounds like something to avoid anyway, thanks!
John