In general, you want your methods to be methods and your functions to not be methods. That way you don't have to worry about this. You might want to try something like File::Spec::Functions's method of currying method calls, or CGI's method of using a hidden object.
You also shouldn't check if the object is in a particular package since you'll limit the ability of others to subclass your module.
In reply to Re: regexp and __PACKAGE__
by brian_d_foy
in thread regexp and __PACKAGE__
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |