IIRC, it's
"col" => [ qw( KEYID CPUTYPE INSTANCE_ID SYSTEM_ID ) ]

What you had is the same as
"col", "KEYID", "CPUTYPE", "INSTANCE_ID", "SYSTEM_ID"
which is the same as
"col" => "KEYID", "CPUTYPE" => "INSTANCE_ID", "SYSTEM_ID"
which is obviously wrong.

Update: Confirmed.

LWP::UserAgent says:

This method will use the POST() function from HTTP::Request::Common to build the request. See HTTP::Request::Common for a details on how to pass form content and other advanced features.

HTTP::Request::Common says:

Multivalued form fields can be specified by either repeating the field name or by passing the value as an array reference.

so either of the following should work:

col => [ qw( KEYID CPUTYPE INSTANCE_ID SYSTEM_ID ) ]
col => 'KEYID', col => 'CPUTYPE', col => 'INSTANCE_ID', col => 'SYSTEM_ID'

In reply to Re: POST Multiple Select List - LWP::UserAgent by ikegami
in thread POST Multiple Select List - LWP::UserAgent by awohld

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.