specifying additional path information on the command line
From: David Christensen (dpchrist_at_holgerdanske.com)
Date: 04/27/04
- Previous message: Gerard Lanois: "Re: FTP with File::Find-like Capabilities: Does It Exist?"
- Next in thread: David Christensen: "Re: specifying additional path information on the command line"
- Reply: David Christensen: "Re: specifying additional path information on the command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 27 Apr 2004 05:23:29 GMT
comp.lang.perl.modules:
I am working on some Perl CGI scripts that use "additional path
information". For example, if the user clicks on the following HTML
link:
<A HREF="/cgi-bin/randompicture.cgi/dpchrist/images">demo</A>:
It results in the script randompicture.cgi being called with
"dpchrist/images" as the additional path information. The script can
fetch this additional path information via CGI.pm's path_info() and
path_translated() functions:
my $path = path_translated()
|| die "must be called with additional path information";
I use strict and use CGI::Carp qw(fatalsToBrowser) during development,
but sometimes I still get a "500 Internal Server Error". I would like
to be able to invoke the script from the command line, but can't figure
out how to specify the additional path information. Yes, I RTFM and
STFM. Does anybody know how to do this?
TIA,
David
- Previous message: Gerard Lanois: "Re: FTP with File::Find-like Capabilities: Does It Exist?"
- Next in thread: David Christensen: "Re: specifying additional path information on the command line"
- Reply: David Christensen: "Re: specifying additional path information on the command line"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|