Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Memory problem

by stonecolddevin (Parson)
on Jun 10, 2005 at 10:05 UTC ( [id://465485]=note: print w/replies, xml ) Need Help??


in reply to Memory problem

I can't help you with your mail problem, I haven't worked a whole lot with perl + mail.
However with  @senders = push @sender, @recipients;, you could use   @senders = push @sender, $_ for @recipients;
That should work :-)
meh.

Replies are listed 'Best First'.
Re^2: Memory problem
by chb (Deacon) on Jun 10, 2005 at 10:32 UTC
    The return value of push is the number of elements in the array (perldoc -f push), so a scalar is assigned to the list @senders. If you want to add the recipients to the senders, try @senders = (@senders, @recipients). The two lists will be flattened. BTW @sender (note the missing 's') in the code looks like a typo waiting for its comment sign to be removed.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-28 09:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found