[Http-webtest-general] Re: Small bug in ReportPlugin.pm
Brought to you by:
m_ilya,
richardanderson
From: Ilya M. <il...@ma...> - 2003-03-29 15:31:21
|
>>>>> On Fri, 28 Mar 2003 17:18:07 -0500, "Amit Kaul" <ak...@ho...> said: AK> Hi Ilya, AK> Thanks for the quick reply to my email. I am sorry but I just tested AK> the new version (i.e version 2.02) and I still get the error. AK> For some reason when you do AK> $self->_smtp_cmd($smtp, 'to', @$mail_addresses); AK> it does not pass an array to NET::SMTP, which is why I had done the AK> assignment of it to a temp variable and then split it to push it onto AK> an array @to. >> my $temp = join / /, @$mail_addresses; >> my @to = split /\s+/, $temp; # push elements into @to array AK> I was wondering what exactly is @$mail_addresses. Is it an array? Or AK> an hash. $mail_addresses is an array ref. I've tested the new code and it should work. My guess that you write wtscript like mail_addresses = ( us...@do... us...@do... ) what is wrong as is string 'us...@do... us...@do...' is treated as single parameter. It should be written as mail_addresses = ( us...@do... us...@do... ) -- Ilya Martynov, il...@ip... CTO IPonWEB (UK) Ltd Quality Perl Programming and Unix Support UK managed @ offshore prices - http://www.iponweb.net Personal website - http://martynov.org |