hello world




----- Original Message ----- 
From: Amarnath Honnavalli Anantharamaiah <[EMAIL PROTECTED]>
To: Me <[EMAIL PROTECTED]>; Perl <[EMAIL PROTECTED]>
Sent: Thursday, May 03, 2001 11:11 AM
Subject: RE: How to use modules Eg. POP3Client.pm


> 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
> > $
> 
> 

Reply via email to