Sixtease has asked for the wisdom of the Perl Monks concerning the following question:
Friends,
how do I check the package from which a (possibly inherited) method will be called? Like if I see $foo->do_stuff(), I'd like to know which package the do_stuff method is located in.
Thanks in advance!
use strict; use warnings; print "Just Another Perl Hacker\n";
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: What package is the method in?
by ikegami (Patriarch) on May 14, 2010 at 14:14 UTC | |
by Anonymous Monk on May 15, 2010 at 11:58 UTC | |
by ikegami (Patriarch) on May 15, 2010 at 17:39 UTC | |
Re: What package is the method in?
by moritz (Cardinal) on May 14, 2010 at 16:07 UTC | |
by ikegami (Patriarch) on May 14, 2010 at 16:34 UTC | |
Re: What package is the method in?
by JavaFan (Canon) on May 14, 2010 at 14:01 UTC | |
by ikegami (Patriarch) on May 14, 2010 at 14:15 UTC | |
Re: What package is the method in?
by bart (Canon) on May 16, 2010 at 14:43 UTC | |
Re: What package is the method in?
by Sixtease (Friar) on May 17, 2010 at 11:14 UTC | |
Re: What package is the method in?
by Anonymous Monk on May 17, 2010 at 16:02 UTC |
Back to
Seekers of Perl Wisdom