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'
In reply to Re: Reloading Modules
by rob_au
in thread Reloading Modules
by rendler
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |