use strict; # I added only this line
use LWP::UserAgent;
my $ua = new LWP::UserAgent;
my $req = new HTTP::Request('GET', 'https://www.nodeworks.com');
my $res = $ua->request($req);
print $res->code."\n";
####
ppm> install Crypt-SSLeay
====================
Install 'Crypt-SSLeay' version 0.51 in ActivePerl 5.8.0.806.
====================
Downloaded 29927 bytes.
Extracting 15/15: blib/html/site/lib/Crypt/SSLeay.html
Installing D:\Perl\site\lib\auto\Crypt\SSLeay\SSLeay.dll
Installing D:\Perl\site\lib\auto\Crypt\SSLeay\SSLeay.lib
Installing D:\Perl\site\lib\auto\Crypt\SSLeay\SSLeay.exp
Installing D:\Perl\site\lib\auto\Crypt\SSLeay\SSLeay.bs
Installing D:\Perl\html\site\lib\Crypt\SSLeay.html
Installing D:\Perl\site\lib\Net\SSL.pm
Installing D:\Perl\site\lib\Crypt\SSLeay.pm
Installing D:\Perl\site\lib\Crypt\SSLeay\X509.pm
Installing D:\Perl\site\lib\Crypt\SSLeay\MainContext.pm
Installing D:\Perl\site\lib\Crypt\SSLeay\Conn.pm
Installing D:\Perl\site\lib\Crypt\SSLeay\CTX.pm
Installing D:\Perl\site\lib\Crypt\SSLeay\Err.pm
Successfully installed Crypt-SSLeay version 0.51 in ActivePerl 5.8.0.806.
ppm>
####
>perl -V
Summary of my perl5 (revision 5 version 8 subversion 0) configuration:
Platform:
osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread
uname=''
config_args='undef'
hint=recommended, useposix=true, d_sigaction=undef
usethreads=undef use5005threads=undef useithreads=define usemultiplicity=def
ine
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cl', ccflags ='-nologo -Gf -W3 -MD -Zi -DNDEBUG -O1 -DWIN32 -D_CONSOLE -
DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_
PERLIO -DPERL_MSVCRT_READFIX',
optimize='-MD -Zi -DNDEBUG -O1',
cppflags='-DWIN32'
ccversion='', gccversion='', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksi
ze=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='link', ldflags ='-nologo -nodefaultlib -debug -opt:ref,icf -libpath:"D:
\Perl\lib\CORE" -machine:x86'
libpth="E:\Program Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\" "D:
\Perl\lib\CORE"
libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32
.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsoc
k32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comd
lg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib
wsock32.lib mpr.lib winmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib
libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib
gnulibc_version='undef'
Dynamic Linking:
dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib -debug -opt:ref,icf -
libpath:"D:\Perl\lib\CORE" -machine:x86'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_
CONTEXT PERL_IMPLICIT_SYS
Locally applied patches:
ActivePerl Build 806
Built under MSWin32
Compiled at Mar 31 2003 00:45:44
@INC:
D:/Perl/lib
D:/Perl/site/lib
.
E:\Documents and Settings\vijay\test>dir D:\Perl\site\lib\auto\Crypt\SSLeay\SSLe
ay.dll
Volume in drive D is Datum
Volume Serial Number is 08B1-4974
Directory of D:\Perl\site\lib\auto\Crypt\SSLeay
11/10/2003 11:17 PM 32,768 SSLeay.dll
1 File(s) 32,768 bytes
0 Dir(s) 8,527,851,520 bytes free