Chris De Young wrote:
> Sorry if this is a re-run, I vaguely remember reading something about it
> somewhere, but I can't find it now...
>
> I'm using perl for some CGI stuff in which I need to pass parameters via GET
> rather than POST, so I need to be able to read $ENV{'QUERY_STRING'}, but it
> seems to be staying undefined rather than getting populated with the correct
> (or even incorrect) values... is this a known problem, or am I likely
> overlooking something stupid? :-)
>
> This is perl, version 5.005_03 built for VMS_AXP
BTW this is now a Configure.com option so you could try re-building perl.
However, if you still do not find 'QUERY_STRING' in %ENV then try the
trick of running:
@junk = keys(%ENV);
@junk = ();
before trying to access $ENV{'QUERY_STRING'} from within perl.
Does that help?
Peter Prymmer