From: Paweł Murias Date: Sat, 23 Jul 2011 21:58:45 +0000 (+0200) Subject: Mention that the import method can take a into argument in X-Git-Tag: 2.0202~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=98778a83f39b514d482660700c584f7fb8dccd04;p=gitmo%2FMoose.git Mention that the import method can take a into argument in the Moose::Export documentation. --- diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index ba5e443..cf1e6d7 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -783,6 +783,10 @@ C, and C. Calling C is equivalent to calling C with C<< install => [qw(import unimport init_meta)] >> except that it doesn't also return the methods. +The C method is built using L. +It can take a hashref of the form C<{into=>$package}> to specify the package +it operates on. + Used by C. =back @@ -818,7 +822,8 @@ C: ... - $class->$import(...); + # If you don't use goto you have to specify into. + $class->$import({into=>caller},...); ... }