Thank you, I will proceed on this package. Regards Amar -----Original Message----- From: Me [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 2:05 PM To: Amarnath Honnavalli Anantharamaiah; Perl Subject: Re: How to use modules Eg. POP3Client.pm Your problem is a missing semicolon at the end of the 'use' line. This makes perl think the following lines ($pop = ...) are a series of parameters to the 'use' pragma. The parameters to the 'use' pragma, after the first one (the module), are a list of particular functions, variables, etc. that you want to import from that module. I'm not quite sure why it picked 'Mail::POP3Client' to be the thing to complain about, but it was clearly destined to complain! > use Mail::POP3Client > $pop = new Mail::POP3Client ( USER => "login", > PASSWORD => "password", > HOST => "domain.com" ); > print $pop->Count(); > $pop->Close(); > > ---------------------------------------------------------------------- ------ > ------------------------------------ > > When I run the above program, I am getting this error > > $ Pop3.pl > "Mail::POP3Client=HASH(0x16e394)" is not exported by the Mail::POP3Client > module at Pop3.pl line 6 > Can't continue after import errors at Pop3.pl line 6 > BEGIN failed--compilation aborted at Pop3.pl line 6, <GEN0> chunk 4 > $
RE: How to use modules Eg. POP3Client.pm
Amarnath Honnavalli Anantharamaiah Thu, 03 May 2001 01:45:57 -0700
- How to use modules Eg. POP3Client.pm Amarnath Honnavalli Anantharamaiah
- Re: How to use modules Eg. POP3Cli... Me
- RE: How to use modules Eg. POP... Amarnath Honnavalli Anantharamaiah
- RE: How to use modules Eg.... Amarnath Honnavalli Anantharamaiah
- Re: How to use modules Eg.... Gil Tucker [ateliermobile]