Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: so simpleby gnat (Beadle) |
on Jun 14, 2000 at 22:27 UTC ( [id://18153]=note: print w/replies, xml ) | Need Help?? |
The easiest solution is to not have functions that do double
duty as methods. Either don't use objects (probably not
reasonable) or don't use normal function calls. Make all
your subroutines be methods, then say:
sub some_public_subroutine { my $objref = shift; #blah blah $objref->some_private_sub("arg1", "arg2", "..."); }
In Section
Seekers of Perl Wisdom
|
|