in reply to Re: When I use "can"
in thread When I use "can"
If no "import" method can be found then the call is skipped.It's documented in perlsub/Autoloading:That can construed as to only applying to use, so maybe the wording of the documentation should be changed.
(As an exception, a method call to a nonexistent "import" or "unimport" method is just skipped instead.)(The unimport case is new as of 5.6.1.)
|
|---|