schetchik has asked for the wisdom of the Perl Monks concerning the following question:
Some::Module->can( 'can' )
Could you tell me, why doesn't code above make exception, when Some::Module not loaded yet?
I think, method look up use @ISA variable of module, and 'can' method is inherited from UNIVERSAL, so if it doesn't make an exception, why doesn't this code return reference to UNIVERSAL::can? Perl documentation abount UNIVERSAL doesn't talk anything about it.
Sorry for my english and perhaps for silly question.
Thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Question about UNIVERSAL::can
by tobyink (Canon) on May 27, 2013 at 22:33 UTC | |
by schetchik (Beadle) on May 28, 2013 at 08:18 UTC | |
by tobyink (Canon) on May 28, 2013 at 15:13 UTC | |
|
Re: Question about UNIVERSAL::can
by Arunbear (Prior) on May 29, 2013 at 16:33 UTC | |
by schetchik (Beadle) on May 29, 2013 at 21:18 UTC | |
|
Re: Question about UNIVERSAL::can (require)
by tye (Sage) on May 28, 2013 at 17:00 UTC |