(perl)
hi guys,
ive searched many places for a solution and cant find one.
problem:
i need to extract information about an image that is stored in a text file.
this information and the image is displayed on a html paged created by the same program.
i managed to create brokencar.html, and insert the image in.
this is just a small portion of my program
perl:
open HTML2, ">c:/cygwin/home/nife/$imageName.html ";
print HTML2 "<head><title>$ imageName.html</title></head>";
print HTML2 "<tr><td><cente r><img src='$imagesPat h$images'></center></td></tr>";
close HTML2;
brokencar.txt:
Dimensions=> 800x600
Title=> Broken Car
Thu Nov 20 21:50:00 WST 2007=> "How shall I ever get home!
how do i grab "800x600", "Broken Car".
and display the comments, which may be multiple.
edit: i believe that the use of match & split maybe necessary.
please advice. time is of the essence.
thanks & cheers
hi guys,
ive searched many places for a solution and cant find one.
problem:
i need to extract information about an image that is stored in a text file.
this information and the image is displayed on a html paged created by the same program.
i managed to create brokencar.html, and insert the image in.
this is just a small portion of my program
perl:
open HTML2, ">c:/cygwin/home/nife/$imageName.html ";
print HTML2 "<head><title>$ imageName.html</title></head>";
print HTML2 "<tr><td><cente r><img src='$imagesPat h$images'></center></td></tr>";
close HTML2;
brokencar.txt:
Dimensions=> 800x600
Title=> Broken Car
Thu Nov 20 21:50:00 WST 2007=> "How shall I ever get home!
how do i grab "800x600", "Broken Car".
and display the comments, which may be multiple.
edit: i believe that the use of match & split maybe necessary.
please advice. time is of the essence.
thanks & cheers
Comment