in reply to Bizarre CGI.pm behaviour or just me?

Thank you tachyon. In writing the dummy script, I left all the "use" statements in place for various modules that the (quite old) original script used. (and of course, for brevity I left them out of my post here - d'oh!)

amongst them was a "common" module that parsed form data into a Hash %common::field.

So, when CGI is used after, STDIN is empty because it has already been read.

And I spent 2 F&*^%ing hours looking for a complicated solution. Ah well, always the way...

Thanks all for your comments. Now all I have to do is find out which scripts use the "common" module and slowly move them over to CGI...

cLive -;)

--
seek(JOB,$$LA,0);

  • Comment on (cLive ;-) Re: Bizarre CGI.pm behaviour or just me?

Replies are listed 'Best First'.
Re: (cLive ;-) Re: Bizarre CGI.pm behaviour or just me?
by tachyon (Chancellor) on Feb 17, 2002 at 11:24 UTC

    And I spent 2 F&*^%ing hours looking

    I reckon we've all been there and done that. Some of us have even done it twice ;-) Glad you have got it figured.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print