in reply to Re: Ghostly subroutine variables haunting me in subsequent calls
in thread Ghostly subroutine variables haunting me in subsequent calls
Add use strict; to your code and it will tell you why.This is not 100% sure: @pileofinchis may be declared in a lexical scope enclosing the sub definition. In which case he may even desire to actually push into it. But then I see no reason to return a reference to it as well, and I'd be curious to know what he is doing with it...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Ghostly subroutine variables haunting me in subsequent calls
by BrowserUk (Patriarch) on Oct 25, 2005 at 18:32 UTC |