Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: multiple modules

by xdg (Monsignor)
on Oct 28, 2005 at 04:34 UTC ( #503592=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://503592]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2020-06-04 02:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (30 votes). Check out past polls.

    Notices?