Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Getting error trying to use Net::SSLeay in LWP script

by kuce (Novice)
on Feb 07, 2001 at 07:26 UTC ( [id://56889]=perlquestion: print w/replies, xml ) Need Help??

kuce has asked for the wisdom of the Perl Monks concerning the following question:

I'm running the below code and am getting the following error:

Use of uninitialized value in -r at blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/randomize.al) line 1159.
Use of uninitialized value in -r at blib/lib/Net/SSLeay.pm (autosplit into blib/lib/auto/Net/SSLeay/randomize.al) line 1163.

#!/usr/bin/perl -w use strict; use LWP::Simple; use LWP::UserAgent; use LWP::Protocol::https; my $url = "https://www.goto.com/s/dtc/simple-signup/"; my $ua = new LWP::UserAgent; my $request = new HTTP::Request GET=> $url; my $page = $ua->request($request); if ($page->is_success) { print $page->content; } else { print $page->error_as_HTML; }
Is there something wrong with my module installation? Thanks.

Replies are listed 'Best First'.
Re: Getting error trying to use Net::SSLeay in LWP script
by sutch (Curate) on Feb 07, 2001 at 07:45 UTC
      I have Net::SSLeay installed. Is that enough?
        Check out the Crypt::SSLeay docs (available here):

        You must have OpenSSL or SSLeay installed before compiling this module. You can get the latest OpenSSL package from:

        http://www.openssl.org

        I think you should include the SSLeay in your script.
        use Net::SSLeay;
Re: Getting error trying to use Net::SSLeay in LWP script
by dsb (Chaplain) on Feb 07, 2001 at 19:48 UTC
    I think its because you have the 'warning' turned on. It just means that at some point in your script you used a variable without initializing it. Like:
    $foo; $bar = "ahhhhh"; while ( $foo eq $bar ) { # execute }
    Foo was never assigned a value and that is considered 'uninitialized'. Hope that helps. - kel -

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://56889]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2024-04-23 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found