Skip Menu |

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

Report information
The Basics
Id: 21143
Status: new
Priority: 0/
Queue: Module-Install

Owner: Nobody in particular
Requestors: mschwern [...]

Bug Information
Severity: Unimportant
Broken in: 0.63
Fixed in: (no value)

Subject: Module::AutoInstall does stuff upon being required.
Download (untitled) / with headers
text/plain 801b
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 is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to