in reply to ikobo.pl return to script

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.

Replies are listed 'Best First'.
Re^2: ikobo.pl return to script
by holli (Abbot) on Feb 05, 2005 at 08:04 UTC
    I canīt find anything rude or impatient in efrets postings.

    holli, regexed monk
      Maybe I'm thinking of an earlier thread.