in reply to Re: Eval doesn't see lexicals
in thread Eval doesn't see lexicals
Okay, I think I understand.
Variables that perl doesn't see being used get cleaned up when going out of scope. The variables go out of scope when the end of the file is reached which is why the code malfunctions when in a separate file.</>
I take it that variables still hang around at the start of a new package even though they are no longer directly acessible ( I am supposing that putting { and } around the entire package would change this, at least the samples for Class::Std do it, and there would have to be a reason.)
It makes sense, but it's pretty obscure ... thanks to all for your input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Eval doesn't see lexicals
by tilly (Archbishop) on Nov 02, 2005 at 02:53 UTC | |
|
Re^3: Eval doesn't see lexicals
by dave_the_m (Monsignor) on Nov 02, 2005 at 10:39 UTC |