Re: Newbie -- got a question

2001-08-08 Thread Curtis Poe
--- Lee Hoffner <[EMAIL PROTECTED]> wrote: > Thanks, Curtis! Below is the script. (I hope it's clear!) > > > > #!/usr/local/bin/perl [snip] > use strict; > use CGI qw/:standard/; > my $dir = param('dir'); [snip] > @filearray = opendir(D

Re: Newbie -- got a question

2001-08-07 Thread Lisa Nyman
Hi, On Tue, 7 Aug 2001, Lee Hoffner wrote: > use strict; > use CGI qw/:standard/; > my $dir = param('dir'); > > #Verify that the requested directory exists. > #I imagine I want to say something like: > if (-d $dir) { > > print < Content-Type: text/html\n\n > > > > END > @filearray =

Re: Newbie -- got a question

2001-08-07 Thread Lee Hoffner
Thanks, Curtis! Below is the script. (I hope it's clear!) #!/usr/local/bin/perl #This script will be called using the "POST" method, #contained in a HREF that the #site visitor clicked on. #The call will contain an argument, which will #be

Re: Newbie -- got a question

2001-08-07 Thread Curtis Poe
--- Lee Hoffner <[EMAIL PROTECTED]> wrote: > I think you might want to see my script, to see where I am trying to go. As > this is my first day on this list, I'd like to know if it's okay for me to > post an entire script before I do. It's 69 lines, with a lot of comments > stating what I am tryin

Re: Newbie -- got a question

2001-08-07 Thread Lee Hoffner
st it, or would you prefer to communicate with me off-list? Much obliged! - Original Message - From: Lee Hoffner To: PERL Beginner List Sent: Tuesday, August 07, 2001 6:48 PM Subject: Newbie -- got a question I'm new to scripting in PERL (I've only done Javascript and Lingo

Re: Newbie -- got a question

2001-08-07 Thread Curtis Poe
--- Lee Hoffner <[EMAIL PROTECTED]> wrote: > I'm new to scripting in PERL (I've only done Javascript and Lingo before). > > I'm building a script to write an HTML page on the fly, using image files > that are in a directory that is given to the script as a variable. How do I > pass my variable to

Newbie -- got a question

2001-08-07 Thread Lee Hoffner
I'm new to scripting in PERL (I've only done Javascript and Lingo before). I'm building a script to write an HTML page on the fly, using image files that are in a directory that is given to the script as a variable. How do I pass my variable to my script from the HREF link that my user clicks? (E