The problem is that in the first example your Content is a reference to a array with all your content values.
But in the second example your content is a reference to a array with only _ONE_ entry.
anoteher way is to put your content data into a array or hash.
Here is a example with a hash:
my %data = (
ettablenr => '2',
etcell2x1 => 'Task',
etcell2x2 => '1',
etcell2x3 => '2',
etcell2x4 => '3',
etcell2x5 => 'High',
etcell2x6 => 'CSS',
etcell2x7 => 'CCCC',
etcell2x8 => 'Twiki Updation',
etcell3x1 => 'Task',
etcell3x2 => '4',
etcell3x3 => '5',
etcell3x4 => '6',
etcell3x5 => 'High',
etcell3x6 => 'DSS',
etcell3x7 => 'DDDD',
etcell3x8 => 'Twiki CSV',
etrows => '3',
etsave => 'Save table'
);
# you change something with $data{etrows} = 4;
my $res = $ua->request(POST $url,
Content_Type=>'form-data',
Content =>[ %data ]
);
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.