In response to the first question, regarding going from @ref="name|name|..." to @ref="name=member|name=member|...", look to the map() statement following your fetchall_arrayref call. @ref is being built by doing a join() using the pipe character("|") to join the values in @names, and @names is being pieced together from the contents of the array referred to by $res. Is a map() statement best there, or would a loop actually be clearer, such as:

# # Untested, off-the-cuff code, # probably w/errors in the reference notation # foreach my $response (@{$res}) { push(@names, $response->[0] . '=' . $response->[1]); }
You at least get the idea-it is perhaps a few lines longer, but somewhat clearer, and thus easier for you to update later.

Don't know if that would do it, but it may at least give you an idea on how to handle it. I hope that helps, and I look forward to the responses of other, more knowledgable monks who may can provide additional (better?) ideas.

Update: Corrected $response[1] in code segment to read $response->[1]. (Still unsure of the code, though.)


In reply to Re: Adding to this by atcroft
in thread Adding to this by Anonymous Monk

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.