in reply to backtick ignores parameters

Is webcal.cgi truly a CGI script? The problem is that in case of qx// or backticks, the script gets its parameters via @ARGV, and not through $ENV{QUERY_STRING} or STDIN with $ENV{CONTENT_LENGTH}.

Are you using CGI.pm to get parameters? If so, the script shouldn't have any problems parsing @ARGV.
The following works with ActivePerl
---------------cut foo.pl ------------------- use CGI; my $q = new CGI; print "$_=",$q->param($_),"\n" for $q->param; ---------------cut foo.pl ------------------- C:\Perl>perl -e "print qx/foo.pl foo=bar bar=foo/;" foo=bar bar=foo C:\Perl>
--perlplexer

Replies are listed 'Best First'.
Re: Re: backtick ignores parameters
by unclepliny (Initiate) on May 20, 2002 at 20:03 UTC
    > Is webcal.cgi truly a CGI script?

    It is -- one of the free offerings from eXtropia/Selena Sol. http://www.extropia.com/applications/webcal_perl.html

    As far as I can tell webcal.cgi is not using CGI.pm. Extropia have a whole Charlie Foxtrot, I mean, um, suite of their own event-handling modules that has been developed over 8-9 years, so the level of abstraction is pretty high.