develooper Front page | perl.perl5.porters | Postings from September 2010

[perl #77792] Using Cpan and ppm

Thread Next
Daniel Oxford
September 12, 2010 07:01
[perl #77792] Using Cpan and ppm
Message ID:
# New Ticket Created by  "Daniel Oxford" 
# Please include the string:  [perl #77792]
# in the subject line of all future correspondence about this issue. 
# <URL: >

Installed strawberry perl and here is the perl -v output: 


"This is perl 5, version 12, subversion 0 (v5.12.0) built for

Copyright 1987-2010, Larry Wall Perl may be copied only under the terms of
either the Artistic License or the GNU General Public License, 

which may be found in the Perl 5 source kit. Complete documentation for
Perl, including FAQ lists, should be found on this system using "man perl" 

or "perldoc perl".  If you have access to the Internet, point your browser
at, the Perl Home Page."


,without problems.


At the command prompt using the 'cpan' command I installed "News::NNTP"
without any problems. However, when I try to use "News::NNTP" it gives the
following message: "Can't locate object method "new" via package
"News::NNTP" (perhaps you forgot to load "News::NNTP"?)." With the code
line: "my $nntp = News::NNTP->new({ 'server' => '' });"
the example in the module. I also installed "Net::NNTP" using the cpan
command. I get the same error: "Can't locate object method "new" via package
"Net::NNTP" (perhaps you forgot to load "Net::NNTP"?) using the module


use Net::NNTP;


    $nntp = Net::NNTP->new("");




I assumed "News::NNTP" or "Net::NNTP" might not have loaded properly so
using the 'cpan' command and I decided to use the command "ppm search' but
it could not find either module. Therefore, apparently there is a bug
between loading modules with the commands cpan and ppm with this version of
perl "strawberry-perl-" Or perhaps the modules were not
distributed across all domains; my ppm uses: "Packages available from" As for why the 'new' is a problem for
creating an objects in perl is beyond my understanding.


Please provide guidance,


Danny Oxford

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About