fletcher_the_dog has asked for the wisdom of the Perl Monks concerning the following question:
In these cases I have to manually change links to the correct subroutine definition (my script defaults to whatever subroutine was defined last). Is there anyway to get around having to do this? Is there some module that I could use that could figure out which type of object a subroutine is being called by?sub myfunction{ my($object1,$object2)=@_; print $object1->to_string(); print $object2->to_string(); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Browsing Perl Code
by hardburn (Abbot) on Feb 03, 2003 at 16:41 UTC | |
|
Re: Browsing Perl Code
by Hofmator (Curate) on Feb 03, 2003 at 17:00 UTC |