[Israel.pm] Changing a my variable

Shlomi Fish shlomif at iglu.org.il
Tue Mar 2 01:02:11 PST 2010

On Tuesday 02 Mar 2010 09:18:26 Peter Gordon wrote:
> I am using a class provided as one of the Perl standard modules. It
> defines a "my" variable as a global, which I need to change from the
> calling program. (Another example where global variables are not a
> brilliant idea).
> I don't particularly want to change the class or file to add an
> accessor, so are there any tricks for doing this?
> Thanks,
> Peter

Hi Peter!

Maybe http://search.cpan.org/dist/PadWalker/ will work for you. But please 
consider restructuring your code in a better way.


	Shlomi Fish

Shlomi Fish       http://www.shlomifish.org/
My Aphorisms - http://www.shlomifish.org/humour.html

Deletionists delete Wikipedia articles that they consider lame.
Chuck Norris deletes deletionists whom he considers lame.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

More information about the Perl mailing list