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

[perl #77792] Using Cpan and ppm

Thread Next
From:
Daniel Oxford
Date:
September 12, 2010 07:01
Subject:
[perl #77792] Using Cpan and ppm
Message ID:
rt-3.6.HEAD-5116-1284272465-76.77792-75-0@perl.org
# New Ticket Created by  "Daniel Oxford" 
# Please include the string:  [perl #77792]
# in the subject line of all future correspondence about this issue. 
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=77792 >


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

 

"This is perl 5, version 12, subversion 0 (v5.12.0) built for
MSWin32-x86-multi-thread

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 http://www.perl.org/, 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' => 'news.supernews.com' });"
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
example:

 

use Net::NNTP;

 

    $nntp = Net::NNTP->new("some.host.name");

    $nntp->quit;

 

 

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-5.12.0.0.msi." Or perhaps the modules were not
distributed across all domains; my ppm uses: "Packages available from
http://www.bribes.org/perl/ppm:" 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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About