From: Robert Sedlacek Date: Tue, 20 Dec 2011 23:04:53 +0000 (+0100) Subject: documented single import package use X-Git-Tag: v1.000000~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bdc3f3ad35c1cb682cd6fa01f25eb09b6fd8c159;p=p5sagit%2FPackage-Variant.git documented single import package use --- diff --git a/lib/Package/Variant.pm b/lib/Package/Variant.pm index 977f76c..8b9a224 100644 --- a/lib/Package/Variant.pm +++ b/lib/Package/Variant.pm @@ -275,6 +275,11 @@ arguments as a flat array reference: The import method will be called even if the list of import arguments is empty or not specified, +If you just want to import a single package's default exports, you can +also pass a string instead: + + use PAckage::Variant importing => 'Package'; + =head2 subs An array reference of strings listing the names of subroutines that should