in reply to Re: Re: Possible Stupid Perl Trick - Importing method into object class?
in thread Possible Stupid Perl Trick - Importing method into object class?
You could skip the repository, and so something like
I used a registry so that you could stage the debugging of new functions. If that isn't an issue for you, then don't use a registry. I've used a registry for something like this in years past, and have found it useful, but YMMV.if ( -f "$attr.sub" ) { # load and eval "$attr.sub" goto &$attr; }
|
|---|