Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Oh, ye hallowed possessors of divine Perl wisdom...
I need to ask about modifying my variables defined in another module.
Assuming the following module:Within my code, I attempt the following:package MODPERL::SausageGrinder; my $foo;
use MODPERL::SausageGrinder; $MODPERL::SausageGrinder::foo = 1;
Yet when debugging, foo is later used within a subroutine defined within the SausageGrinder module. There, I'm seeing that foo is not set as I did within my code (calling module).
Is it possible to modify my variables within another module thy lowly newbie humbly asks?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: modifying module variables?
by ikegami (Patriarch) on May 29, 2009 at 19:27 UTC | |
|
Re: modifying module variables?
by DStaal (Chaplain) on May 29, 2009 at 19:30 UTC | |
|
Re: modifying module variables?
by Perlbotics (Archbishop) on May 29, 2009 at 19:42 UTC |