X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FExporter.pm;h=abdb1e788b244b1d5cf61487aace9d93f0910c61;hb=a45ab7f640a570b9f6a73e51a29e6396f5854421;hp=e3744145056e24a09241e61e32e791467ed3370d;hpb=3221d3b03bb599fb4e56ab951ff19a0d00442685;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/Exporter.pm b/lib/Exporter.pm index e374414..abdb1e7 100644 --- a/lib/Exporter.pm +++ b/lib/Exporter.pm @@ -176,6 +176,7 @@ sub export_ok_tags { _push_tags((caller)[0], "EXPORT_OK", \@_) } # Default methods sub export_fail { + my $self = shift; @_; } @@ -264,7 +265,7 @@ try to use @EXPORT_OK in preference to @EXPORT and avoid short or common symbol names to reduce the risk of name clashes. Generally anything not exported is still accessible from outside the -module using the ModuleName::item_name (or $blessed_ref->method) +module using the ModuleName::item_name (or $blessed_ref-Emethod) syntax. By convention you can use a leading underscore on names to informally indicate that they are 'internal' and not for public use. @@ -328,7 +329,7 @@ into modules. =head2 Module Version Checking The Exporter module will convert an attempt to import a number from a -module into a call to $module_name->require_version($value). This can +module into a call to $module_name-Erequire_version($value). This can be used to validate that the version of the module being used is greater than or equal to the required version.