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 }| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |