more useful options | |
PerlMonks |
Re^2: Memory problemby chb (Deacon) |
on Jun 10, 2005 at 10:32 UTC ( [id://465488]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|