in reply to changing package variables?
Because the variable in the package is declared within the scope of that package. So basically you now have two variables:
$MYPACKAGE::var1 contains 'DEFAULT I WANT TO CHANGE'
$main::var1 contains 'PRINT THIS'.
You need to peruse perlvar and the docs for the package command.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: changing package variables?
by LameNerd (Hermit) on Mar 05, 2003 at 00:06 UTC | |
by arturo (Vicar) on Mar 05, 2003 at 15:55 UTC |