Hello Francesco,

first of all you should read the CGI.pm manpage if you want to write good
CGIs.
You don't need to use the CGI.pm module, but it is considered good
programming practice and it saves a lot of time since you don't have to
bother with a lot of things.

The following code should help you get the idea:

#!/usr/bin/perl -w
use strict;
use CGI qw(:standard);
my $file = param("filename");
#now the blahblah bit is extracted and saved in $file


-----Ursprüngliche Nachricht-----
Von: Francesco Scaglioni [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 7. August 2001 13:05
An: [EMAIL PROTECTED]
Betreff: href arguments


Hi,

THis is probably a simple question.  Am new to perl and CGI so please
have mercy. I have a script which displays a list of files with links
to them.  The links when hovered over in a browser show as:

display_file.pl?filename=blahblah

How can I extract the blahblah bit (which is the name of the selected
file) so that the display_file.pl script can know which file it is to
open and process?  I think this makes sence.  I want the script
display_file.pl to perform an action on file blahblah.

TIA

Francesco

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to