jmac says The value of $K is indeed set to the value in the record
OK, given the following apparently proven assumptions:

1. That the radio button being printed is named "edit" and that its value when selected is indeed, say, 5, and that the radio button is indeed selected, the script fails.

2. That a textual input field of name "edit", given a value of "5", permits the script to succeed

This just makes no sense to me. How are you parsing the "edit" form element? Is it empty when your script is called with the radio button method but set to "5" (or whatever) when called with the text field method? Are you using the stock CGI.pm module or are you rolling your own parsing? And, finally, it would help if we could see the HTML as printed out by your script. I keep asking for this but I never see it. Can't you just "View Source" and cut/paste? You can leave out the non-form-related content if it's going to be a bit much.. I just want to see the <form> tags, the <input> tags and any other form tag that might use "edit" as its name. Something is not right. You keep insisting that things are being printed correctly, but this is inconsistent with the results you're getting. We need more information.


In reply to RE: Re: modifying records in a delimited text file by Fastolfe
in thread modifying records in a delimited text file 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.