> >I wonder how to compile such small script using PAR to make it work:
> >
> >    #!perl
> >    use warnings;
> >    use strict;
> >    use LWP::UserAgent;
> >    my $ua = new LWP::UserAgent;
> >    my $req = new HTTP::Request(GET => 'http://www.google.com');
> >    my $res = $ua->request($req);
> >    if ($res->is_success) { print $res->content; }
> >    else {print $res->error_as_HTML; }
> >
> >Currently I try to compile it under windows with such 
> command options:
> >
> >    pp -C -o lwp.exe lwp.pl
> >
> >which gave me an executable which hangs up after it is executed.
> Did you ever figure this out? I just encountered the same 
> issue... code 

I can't reproduce this: the pp'ed executables work as expected,
I tried on Solaris and Windows XP 
(using PAR 0.91, Module::ScanDeps 0.56 and LWP 5.805.

Cheers, Roderich

Reply via email to