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.