Return-Path: Delivered-To: apmail-modperl-archive@apache.org Received: (qmail 5389 invoked by uid 500); 6 Nov 2001 08:35:44 -0000 Mailing-List: contact modperl-help@apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list modperl@apache.org Delivered-To: moderator for modperl@apache.org Received: (qmail 19138 invoked from network); 2 Nov 2001 01:42:14 -0000 Message-ID: <20011102014213.8341.qmail@quantum.ukshells.co.uk> From: "James Wilson" Subject: CGI.pm - Unnamed parameter To: modperl@apache.org Date: Fri, 2 Nov 2001 01:42:13 +0000 (GMT) X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, Hopefully a quick and easy question... I'm accessing as follows: /cgi-bin/script.pl?data And want to know how to get 'data' from somewhere using CGI.pm Am familiar with using $cgi->param{'it'} to read .../script.pl?it=data and also using $cgi->path_info() to read .../script.pl/data but I don't know how to get at it using the format at the top. I've noticed from experiment that given /script.pl?data, I seem to be able to get it using $cgi->param{'keywords'}, but if I am using .../script.pl?param=value&data then I can access 'value' from $cgi->param{'param'}, but can no longer get 'data' from $cgi->param{'keywords'} I'm therefore obviously concerned about just asssuming that $cgi->param{'keywords'} will return 'data' given an access of .../script.pl?data as I can find no reference in CGI.pm docs about this being a standard behaviour. Does anyone know a fail-safe way of retrieving 'data' using a CGI.pm call given an access as above ??? Thanks, James -- perl@j2w.co.uk