
December 27th, 2012, 11:01 AM
|
 |
Contributing User
|
|
Join Date: Apr 2008
Posts: 40
Time spent in forums: 17 h 34 m 15 sec
Reputation Power: 6
|
|
|
Wget with array?
Hi,
I have a cgi perl script and I'm trying to use wget with an array in the address, but it is not interpreting the array. I checked the logs and it executing the wget with http://someaddress=@array[$i] instead of "http://someaddress=111,222,333,444,555.
Code:
@array[0] = 111,222,333,444,555;
for ($i = 0; $i<$as; ++$i){
system ('wget "http://someaddress=@array[$i]"');
}
if i hard code the values in it works fine but that is not an option.
Im still very new to perl, so if anyone could help it would be greatly appreciated.
Thanks!!!
|