Do you know where your variables are? | |
PerlMonks |
Re: Re: Re: Re: Calling can methodby gildir (Pilgrim) |
on May 30, 2001 at 17:48 UTC ( [id://84253]=note: print w/replies, xml ) | Need Help?? |
Well, I wonder in what circumstances I cannot call $x->can('foo') safely. Only scenario that comes to my mind is when author of class that implements object $x overrides method 'can'. But if such an author would do this, he is supposed to know what he is doing, as 'can' is a well known method together with 'isa'.
In Section
Seekers of Perl Wisdom
|
|