X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSafe%2FIsa.pm;h=92c3b6fb5046de6ed0e0ca55c350e267a905be3b;hb=5268d11199983a86db426ebe9554624794ddf1cb;hp=fb3c5ab72a2764a22e091541d9cb833b9084d254;hpb=9d3d6b490907e28992f225d4527a0460acb3c1d2;p=p5sagit%2FSafe-Isa.git diff --git a/lib/Safe/Isa.pm b/lib/Safe/Isa.pm index fb3c5ab..92c3b6f 100644 --- a/lib/Safe/Isa.pm +++ b/lib/Safe/Isa.pm @@ -160,14 +160,17 @@ returns nothing. $maybe_an_object->$_does('Foo'); If called on an object, calls C on it and returns the result, otherwise -returns nothing. +returns nothing. If the C method does not exist, returns nothing rather +than failing. =head2 $_DOES $maybe_an_object->$_DOES('Foo'); If called on an object, calls C on it and returns the result, otherwise -returns nothing. +returns nothing. On perl versions prior to 5.10.0, the built in core C +method doesn't exist. If the method doesn't exist, this will fall back to +calling C just like the core C method. =head2 $_call_if_object