in reply to Re: Getting query string with CGI::Fast
in thread Getting query string with CGI::Fast

Thanks for pointers. I see most examples on the Internet use "while", and I'm not really sure why. Would "if" work too?

  • Comment on Re^2: Getting query string with CGI::Fast

Replies are listed 'Best First'.
Re^3: Getting query string with CGI::Fast
by Anonymous Monk on Jul 28, 2020 at 07:42 UTC
    Try it without the while loop and see what happens

      The counter does not increment when I use "if". I'm not exactly sure what the purpose of the counter is in the context of a web script. I'm totally new to FCGI. Should I be using "if" or "while"? What difference do they make after a response is received and despatched to subroutines?

        What is FCGI?
        If you're not constrained to using CGI, look at Dancer2. (or Mojo, whatever, we need a macro to suggest both simultaneously). CGI::SpeedyCGI is also an option for persistence in constrained environments. I know, it's old. You'd be surprised to hear who still uses it.