The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Namespace::Pollute - Loads and imports the default exported symbols of a list of modules

VERSION

version 0.001

SYNOPSIS

  use Namspace::Pollute qw(-verbose My::Exporter1 My::Exporter2);

DESCRIPTION

Takes a list of modules, loads them, and exports their symbols into the current namespace. This first version provides only a small advantage in brevity over a list of 'use' statements, but has the ability to print out the symbols as they are exported for modules that inherit from 'Exporter'.

For modules that don't inherit from 'Exporter', those modules' 'import' method will be called.

TODO

1) Make it work for Exporter's EXPORT_OK. 2) Export symbols to a variable number of levels.

AUTHOR

Sean Blanton <sean@blanton.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Sean Blanton.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.