phizymonk has asked for the wisdom of the Perl Monks concerning the following question:
So I am just getting into CGI using perl, and the last time I posted I had a lot of help to understand hashes and things, so I figured I would ask here.
print $q->header("text/html"), $q->start_html("Images in $imagedir"), $q->print("These are all the images in the directory");
with this code snippet $q is set to "new CGI" is this just laying the ground work for the html part of the script that is running? the goal is to make a script that prints all the images in a directory.
also I am sort of confused by this regex and I think I am confused because we have not used grep before
grep { /\.(?:gif|jpg)$/i }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI Help
by toolic (Bishop) on Feb 10, 2016 at 18:51 UTC | |
by phizymonk (Novice) on Feb 10, 2016 at 19:20 UTC | |
by kennethk (Abbot) on Feb 10, 2016 at 20:17 UTC | |
|
Re: CGI Help
by kennethk (Abbot) on Feb 10, 2016 at 20:20 UTC | |
by GrandFather (Saint) on Feb 10, 2016 at 20:32 UTC |