Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: erreur : "HASH(0x97f5b20)" is not exported by

by ferreira (Chaplain)
on Jun 27, 2007 at 11:09 UTC ( #623585=note: print w/replies, xml ) Need Help??

in reply to erreur : "HASH(0x97f5b20)" is not exported by

Look closer to the synopsis of Mail::Sender (here). It reads as:
use Mail::Sender; $sender = new Mail::Sender {smtp => '', from => ''}; $sender->MailFile({to => '', subject => 'Here is the file', msg => "I'm sending you the list you wanted.", file => 'filename.txt'});

So the problem is that you are passing to use Mail::Sender the arguments that should go into Mail::Sender->new. When you do that, the import method of Mail::Sender which expected symbols to be imported into the caller package, tries to do that with the stringification of the hash ref you passed. And then

"HASH(0x97f5b20)" is not exported by the Mail::Sender module...

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://623585]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2018-07-20 11:00 GMT
Find Nodes?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?

    Results (428 votes). Check out past polls.