- or download this
can(METHOD)
can checks to see if its object has a method called METHOD. If it
+does
then a reference to the sub is returned; if it does not then undef
+ is
returned.
- or download this
package A;
...
my $self = shift;
return $self->can("_write_file");
}
- or download this
package A::B;
use A;
...
my($path, $val, $start) = @_;
# ...
}