This queue is for tickets about the Module-Install CPAN distribution.

Report information
The Basics
Id:
21143
Status:
new
Priority:
Low/Low

People
Owner:
Nobody in particular
Requestors:
mschwern [...] cpan.org
Cc:
AdminCc:

BugTracker
Severity:
Unimportant
Broken in:
0.63
Fixed in:
(no value)



Subject: Module::AutoInstall does stuff upon being required.
I was rather surprised when "require Module::AutoInstall" started to parse command line arguments immediately upon being loaded. At the time I was trying to debug something in Module::Install and needed to set a breakpoint in a Module::AutoInstall method. So I required it in the debugger and to my surprise it started loading the CPAN shelll! Here's a simpler example: $ perl -wle 'require Module::AutoInstall' -h Usage: perl [switches] [--] [programfile] [arguments] -0[octal] specify record separator (\0, if no argument) -a autosplit mode with -n or -p (splits $_ into @F) It is generally a Bad Thing for a module to start doing work upon being loaded. Its very surprising and makes the module very difficult to work with. If this behavior can be removed it should.


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.