in reply to Reloading Modules
Depending on your requirement for this functionality, you could use eval and call your module at run-time only with the scope of this function. eg.
my $func = eval { use MyFunction; return MyFunction->method(); };
The problem with this approach however, is that your module usage will only have a limited scope. Although, depending upon your script design, this could also offer some advantages.
perl -e 's&&rob@cowsnet.com.au&&&split/[@.]/&&s&.com.&_&&&print'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Reloading Modules
by rendler (Pilgrim) on Feb 03, 2002 at 06:18 UTC | |
|
Re: Re: Reloading Modules
by Anonymous Monk on Feb 03, 2002 at 19:16 UTC |