Help for this page
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.
package A; ... my $self = shift; return $self->can("_write_file"); }
package A::B; use A; ... my($path, $val, $start) = @_; # ... }
Ceramics Glass Wood Metal Plastic Paper Banana leaves Something else
Results (485 votes), past polls