X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FImport-Into.git;a=blobdiff_plain;f=lib%2FImport%2FInto.pm;fp=lib%2FImport%2FInto.pm;h=c2ddbf8720a8f77fdfdb6d3b73c6dda0b6d6900d;hp=71f1507e8734d4fedbdd1221cca0b503006f060f;hb=06bd142d875a918529a7e006cbddcd3cbddc11b9;hpb=074eb8db7f15cce684ce9645cb1138d721ddd64e diff --git a/lib/Import/Into.pm b/lib/Import/Into.pm index 71f1507..c2ddbf8 100644 --- a/lib/Import/Into.pm +++ b/lib/Import/Into.pm @@ -204,6 +204,9 @@ in the directive then need to be fetched using C: }; $sub->($thing, @import_args); +And you need to switch between these implementations depending on if you are +targetting a specific package, or something in your call stack. + Remembering all this, however, is excessively irritating. So I wrote a module so I didn't have to anymore. Loading L creates a global method C which you can call on any package to import it into another