in reply to Re: Re: Global symbol requires explicit package name
in thread Global symbol requires explicit package name
My initial guess would be that its "close" function is not "exported" to your script by default (though this would seem uncooperative); have you tried:
use Mail::Mailer (qw/close/);
update: having just looked at the docs on CPAN for Mail::Mailer, it may be that the correct means is:
Though why this should make a difference is beyond me. (This module is not exemplary in its documentation.) Anyway, you could also try just removing the "close" statement -- when the script exits, the mail object is bound to close.use Mail::Mailer qw(mail);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Global symbol requires explicit package name
by chromatic (Archbishop) on Aug 15, 2003 at 03:00 UTC | |
by graff (Chancellor) on Aug 15, 2003 at 03:11 UTC | |
by rinceWind (Monsignor) on Aug 15, 2003 at 11:26 UTC | |
|
Re: Re: Re: Re: Global symbol requires explicit package name
by Nickd_69 (Novice) on Aug 15, 2003 at 02:59 UTC |