tobyink / p5-exporter-tiny

Perl 5 distribution Exporter-Tiny; see homepage for downloads and documentation.
https://exportertiny.github.io
6 stars 7 forks source link

no docs for importing into hash via { into => \%hash } #11

Open djerius opened 1 year ago

djerius commented 1 year ago

The ability to import symbols into a hash via

use My::Package { into => \%hash }, @symbols;

isn't documented. Has it been deprecated?

tobyink commented 1 year ago

It's not deprecated.

It was covered in the documentation section dealing with lexical imports, but when that was rewritten, it looks like the documentation for importing into hashrefs was lost.

I'll add it back soon.

djerius commented 1 year ago

It's not deprecated.

Thanks. I needed to do something slightly odd and this came in very handy, so I'm glad to hear it'll be around.