lenieto3 has asked for the wisdom of the Perl Monks concerning the following question:
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?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: write html code with perl
by kcott (Archbishop) on Mar 01, 2014 at 06:30 UTC | |
by graff (Chancellor) on Mar 01, 2014 at 09:11 UTC | |
by kcott (Archbishop) on Mar 01, 2014 at 18:32 UTC | |
Re: write html code with perl
by zentara (Archbishop) on Mar 01, 2014 at 11:21 UTC | |
Re: write html code with perl
by thomas895 (Deacon) on Mar 01, 2014 at 21:56 UTC | |
Re: write html code with perl
by Anonymous Monk on Mar 01, 2014 at 01:51 UTC |