Lines Matching refs:can
7 # accident that can't be fixed without breaking code. Note that we
13 @EXPORT_OK = qw(isa can VERSION);
27 $sub = $obj->can("print");
28 $sub = Class->can("print");
30 use UNIVERSAL qw( isa can VERSION );
32 $sub = can $ref, "fandango" ;
96 =item C<< $obj->can( METHOD ) >>
98 =item C<< CLASS->can( METHOD ) >>
100 =item C<can( VAL, METHOD )>
102 C<can> checks if the object or class has a method called C<METHOD>. If it does
107 C<can> cannot know whether an object will be able to provide a method
111 for methods they will handle via AUTOLOAD. For such 'dummy' subs, C<can>
116 C<can> can be called as a class (static) method, an object method, or a
120 has a method called C<METHOD>, C<can> returns a reference to the subroutine.
131 C<VERSION> can be called as either a class (static) method, an object
141 You may request the import of all three functions (C<isa>, C<can>, and