[tpm] dereferencing arrays
rdice at pobox.com
Fri Jun 27 07:27:41 PDT 2008
> So the docs say pass in a reference to an array (containing the list)
> @list = ['184.108.40.206', '220.127.116.11'];
> Net::SMTP->new(\@list, ...);
I haven't looked at the docs for Net::SMTP, but this just looks weird to me.
What you're creating within @list is an array wherein the 0-th element is
itself a listref.
Then, you pass a _reference_ to this list?
I would think that what you'd want is...
@list = ('18.104.22.168', '22.214.171.124');
I.e. if Net::SMTP wants a listref, it probably doesn't want a double
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the toronto-pm