<div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">So the docs say pass in a reference to an array (containing the list)<br>
<br>
@list = ['<a href="http://1.2.3.4" target="_blank">1.2.3.4</a>', '<a href="http://2.3.4.5" target="_blank">2.3.4.5</a>'];<br>Net::SMTP->new(\@list, ...);<br></blockquote><div><br>Meh?<br><br>I haven't looked at the docs for Net::SMTP, but this just looks weird to me.<br>
<br>What you're creating within @list is an array wherein the 0-th element is itself a listref.<br><br>Then, you pass a _reference_ to this list?<br><br>I would think that what you'd want is...<br><br><br>
@list = ('<a href="http://1.2.3.4/" target="_blank">1.2.3.4</a>', '<a href="http://2.3.4.5/" target="_blank">2.3.4.5</a>');<br>Net::SMTP->new(\@list, ...);<br><br>I.e. if Net::SMTP wants a listref, it probably doesn't want a double listref.<br>
<br>Cheers,<br> - Richard<br><br></div></div>