In addition to dragonchild's response, you can use caller to determine the calling namespace:
my $calling_namespace = caller(0);
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: checking from a module if a sub exists in main::
by Ovid
in thread checking from a module if a sub exists in main::
by tune
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |