[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

[MacPerl] Using libwww with MacPerl 5.1.3 - a beginner's question



I have just downloaded libwww-perl-5.10 from the Web and installed the
HTTP, WWW, HTML, and LWP folders into my lib folder. Unfortunately, when
I check the syntax of the following code...

 use LWP::UserAgent;
  $ua = new LWP::UserAgent;
  $req = new HTTP::Request 'GET', 'http://www.sn.no/secret/';
  $req->authorization_basic('aas', 'mypassword');
  print $ua->request($req)->as_string;

I get the following message:

# Can't locate LWP.pm in @INC.
File 'Macintosh HD:MacPerl 5.1.3 °:lib:LWP:UserAgent.pm'; Line 116
# BEGIN failed--compilation aborted.
File 'Macintosh HD:MacPerl 5.1.3 °:lib:LWP:UserAgent.pm'; Line 116
# BEGIN failed--compilation aborted.
File 'Macintosh HD:MacPerl 5.1.3 °:Dossier mes
scripts:connectAuthen.pl'; Line 1
# Unbalanced scopes: 1 more ENTERs than LEAVEs
# Unbalanced saves: 93 more saves than restores

Questions:

How do you include a module in the @INC array?
Why did module compilations fail?
What does

# Unbalanced scopes: 1 more ENTERs than LEAVEs
# Unbalanced saves: 93 more saves than restores

mean?

How can I remedy those problems?

Many thanks.

Philippe de Rochambeau


***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch