http://qs1969.pair.com?node_id=503592


in reply to Re: multiple modules
in thread multiple modules

That doesn't work for strict and warnings, which wind up applying only within the eval. I discuss how to make that and the import lists work in Bundling commonly-used modules into a toolset.

package all; use base 'ToolSet'; ToolSet->set_strict(1); ToolSet->set_warnings(1); ToolSet->export( 'Time::HiRes' => undef, 'Data::Dumper' => undef, 'List::Util' => 'sum', ); 1;

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.