in reply to CGI simple but frustrating fault

Not being an expert in new-fangled technology ("what do you mean, I'm not allowed to use assembly code?")

Actually you can use assembly in your perl CGI if you want to...

Replies are listed 'Best First'.
Re^2: CGI simple but frustrating fault
by gsd4me (Beadle) on Mar 12, 2025 at 13:02 UTC

    Dear all,

    Thanks you for your assistance in this matter and yes, it was a case of reorganising the sequence of statements.

    HOWEVER, the most salient piece of advice that I came across was on another posting elsewhere (sorry, haven't got the link) where it was mentioned that "use CGI" causes all sorts of problems with the POST method and effectively clears the POST buffer before it is referenced. The workaround is to check the buffer via the ENV statements BEFORE implementing the "use CGI" statement. This is now how I do the checks which allow some progress for me. Again, many thanks for the advice and observations

    regards, ADB

      another posting elsewhere (sorry, haven't got the link) where it was mentioned that "use CGI" causes all sorts of problems with the POST method

      That has not been my experience. CGI.pm has caused me a grand total of zero problems with POST requests in the quarter century or so that I have used it. Perhaps if you were to provide an SSCCE to demonstrate, someone here could steer you right.

      CGI.pm has its flaws but it certainly beats trying to parse parameters or uploaded files by hand from first principles every time.


      🦛

      I've literally never seen this happen, nor have I seen anyone suggest this course of action. You've posted code your aren't running, you've not posted a self contained example to replicate the issues. How do I post a question effectively?.