Hi, I'm working in a basic html page, actually it is just a list of links to some pictures.
<html> <head> <link type="text/css" rel="stylesheet" href="style/sty +lesheet.css"/> </head> <body> <ul> <li><a target="_blank" href="images/patecumbia +.png">Patecumbia</a></li> <li><a target="_blank" href="images/trapped.pn +g">Trapped</a></li> <li><a target="_blank" href="images/navaja_for +ce.png">Navaja Force</a></li> <li><a target="_blank" href="images/que_esta_p +asando.png">¿Qué está pasando?</a></li> <li><a target="_blank" href="images/the_look.p +ng">The Look</a></li> <li><a target="_blank" href="images/hablame.pn +g">Hablame</a></li> </ul> </body> </html>
I just loaded some new pictures in my images directory and I want to update my web page, as it is a really repetitive work I'll like to use a perl script for doing it.
I want to replace all the lines between the ul tags for just a perl script that reads the files under the images directory and give me the html lines that I need.
I'm working in this script, but how can I do for embedding its output into the html page?. Thanks monks
Thanks for your answers, but I was thinking in something like the php opening and closing tags. Can perl be used like this way?
In reply to write html code with perl by lenieto3
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |