Skip Menu |

This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id: 57151
Status: new
Priority: 0/
Queue: CPAN

People
Owner: Nobody in particular
Requestors: cpan [...] bit-man.com.ar
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.9402
Fixed in: (no value)



Subject: Wrong parameters at perldoc
Hi, looking at the documentation on how to force a command it states : CPAN::Bundle::force($method,@args) Forces CPAN to perform a task that it normally would have refused to do. Force takes as arguments a method name to be called and any number of additional arguments that should be passed to the called method. The problem with this is that if the next code is run CPAN::Bundle::force('test', @modules); it ends with the error : Can't locate object method "rematein" via package "test" (perhaps you forgot to load "test"?) at /usr/local/share/perl/5.10.0/CPAN/Bundle.pm line 245. Instead if the next code is used CPAN::Bundle::force('CPAN::Shell','test', @modules); everything works well. Please add to the documentation that the first argumnt must be tha package name and the second one the method name Thanks for such a great module !!