[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 = ['220.127.116.11', '18.104.22.168'];
> 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 = ('22.214.171.124', '126.96.36.199');
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