Well, I have free time on my hands so against my better judgement I'm going to take a crack at this. But first I would like to make some suggestions that will help you both in your code and in getting help here at Perl Monks.

I am going to start by looking at the last script you listed and assume, since you didn't say so, that this is the script that runs when I go to the URL you posted. The first problem is that you are calling

&read_item_file($form{'category'},$form{'item'});
at the very beginning of your program before you have populated the hash %form with any data. Hence the variables $category and $item will always be empty.

Second, you post the code of a function called postal_login without giving any indication of where it is called from. So I have no idea what is wrong with that code. But since you are referring to $ENV{SCRIPT_NAME} in all of the links you generate, I assume it is simply whatever code is processing the form. That code calls a lot of other subroutines that you have not explained what they do, but as it is the code in postal_login looks ok to me if the %form hash is populated when you call it.

Third, if you look at the code you posted first, the ikopo.pl script, you will see that it does nothing other than write to a local file and then print out the string "RESP=OK" with a content type of text/plain. You sound like you expect it to "return to mt script" but since you don't say how you are calling it, we can't help you with that part. If you call it from your other CGI using LWP this might be one way.


In reply to Re: ikobo.pl return to script by Errto
in thread ikobo.pl return to script by efret

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.