Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Sending email with Net::SMTP

by Excalibor (Pilgrim)
on Jul 14, 2003 at 21:07 UTC ( [id://274173]=note: print w/replies, xml ) Need Help??


in reply to Sending email with Net::SMTP

Hi there,

I'm not sure, but the following code, using your hash, gives this:

my @addresses = map($option_to_address{$_},grep($option_to_address{$_} +, ('user1@domain.com', 'user3@domain.com'))); print "[[[@addresses]]]\n"; # prints => [[[]]]

I'd review that grep(), the mapping doens't seem to be working...

good luck,

--
our $Perl6 is Fantastic;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://274173]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-03-19 04:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found