关于HTML Image Gallery请高手帮忙解答下

关于HTML Image Gallery请高手帮忙解答下

关于HTML Image Gallery请高手帮忙解答下
完全写不出来 而且不太理解 所高手们指点下,最好是完整的code 小弟先谢过了
HTML Image Gallery
You are to create a Perl script that will generate a HTML image gallery from a given set of image. Note that this is NOT to be a CGI script that generates the html “on the fly”, but a Perl program that generates a set of HTML pages to be uploaded to a web server.

You Perl script will collect the following pieces of information from the user in a way that seems appropriate to you (e.g. command line, interactively):
- The name of the image gallery
- The location of a directory containing the images
- The location of a directory containing information files

You Perl script should check that the image and information directories exist and are readable, printing an error message and exiting if they are not.

Once you have the input, your script should produce the following HTML files:

The index.html file
- Displays in the title bar the name of the image gallery
- Displays each image in the directory as a thumbnail (note that you do not have to physically resize the images, just restrict their size using the width and/or height attributes in the img tag)
- Each thumbnail is a link to a separate image page
Image Pages
- Displays time image in full isze
- Displays the image name in the title bar
- Displays the contents of an “information” file. The information file will be in a directory provided by the user, and each file will have a name like imagename.txt. The information file will hold a Dimensions attribute a, a Title attribute and 0 or more Captions. These attributes may appear in any order in the file, and will look something like:
Dimensions => WidthxHeight
Title => Picture Title
<timestamp> => Caption
<timestamp> => Caption

The name of the image is the filename without the extension, i.e.
If the filename is augusta.jpg then the name of the image is augusta, and the information file will be augusta.txt

You can find a set of example images and information files, as well as an example of what your finished image gallery should look like at:
http://www.ece.curtin.edu.au/~cs201/assigment2.zip
Bonus (5 marks) - use CGI to allow users to add new comments. It is not possible to get more than 100% in this assignment. The bonus marks allow you to make up marks you may have lost in the first section of the assignment.




   

呵呵,又是澳洲的作业把.
生成静态html文件。-- 生成静态html文件。

open FH, ">index.html" or die ....
for (...) {
print FH ...
}
print FH ...
close FH;
[quote]回复给 福尔马林 :.
[quote]回复给 福尔马林 : 生成静态html文件。--<b....[/quote]
能否提供完整的code呢?还是不太理解 辛苦兄弟了..
这是你学校的作业,怎么可.
这是你学校的作业,怎么可以直接就上来要答案?

如果你自己试着解决,遇到问题,我们乐意帮忙。枪手就免了。