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

Re: [MacPerl] Using libwww with MacPerl 5.1.3 - a beginner'squestion



pr1@club-internet.fr writes:
}I have just downloaded libwww-perl-5.10 from the Web and installed the
}HTTP, WWW, HTML, and LWP folders into my lib folder.

And the file LWP.pm on which most else depends went where?  (It's not a
great idea to put these in your MacPerl lib folder, by the way.)

}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


--------
Paul J. Schinder
NASA Goddard Space Flight Center
Code 693
Greenbelt, MD 20770
schinder@pjstoaster.pg.md.us


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