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.