That's one of the oddities here. You see, until now none of my fields had to have multiple values, so the original solution was fine, and since I had only one field with mulitple values, I concluded that I could ignore its entry in the ARGS hash and simply re-request it, this time treating it as an array, which I believe could be done in using CGI, which Apache::Request claims to mimic with the differences stated in the docs. For some reason when I re-request it though after treating it like a scalar once, it get caught up in what seems to be an infinite loop (I haven't been able to locate the source so I can't say for sure, all I know is I need to restart apache to get it to respond again.)

While my improvised solution would work, I don't want to re-write the rest of the code to adapt to only one section of code requiring multiple values, so I'm kinda stuck. (I'm concerned that someone will intentionally pass multiple values for some of the other fields at some point, which, in it's current state, it will ignore the second value onward of, but under the modification would be automatically converted to an array ref.)



My code doesn't have bugs, it just develops random features.

Flame ~ Lead Programmer: GMS (DOWN) | GMS (DOWN)


In reply to Re^2: Apache::Request and param($x) infinite loop? by Flame
in thread Apache::Request and param($x) infinite loop? by Flame

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.