in reply to Filling a textbox with an array in WWW::Mechanize

Calling a function like system flattens the arguments, so the contents will not be in $ARGV[4], but in @ARGV[4..$#ARGV]. So you can try this instead:
$agent->field("PATHS", join("\n", @ARGV[4..$#ARGV]));

Replies are listed 'Best First'.
Re^2: Filling a textbox with an array in WWW::Mechanize
by Anonymous Monk on Jul 30, 2008 at 20:17 UTC
    Thanks for the quick reply. I forgot to mention that when I am passing the array on the submit call the first element (0) in that array will be used for another field. How would I fill in the argument from ARGV4 element 1 ... end of ARGV4. Thanks.
      C:\>perl -le" print $i++,qq-\t$_ - for @ARGV" a b c d e f g 1 2 3 3 3 +3 3 3 0 a 1 b 2 c 3 d 4 e 5 f 6 g 7 1 8 2 9 3 10 3 11 3 12 3 13 3 14 3