Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Anyway to put all this into a variable or an include file? I know Cold Fusion has an include file for storing information and using it on web pages. Is there anything I can do like that in perl so I dont have to type in the above HTML 8 times on the same CGI page? Basically just put the HTML piece in a variable or include file to cut back writing the same HTML over and over again.<table> <tr> <td>Info</td> </tr> <tr> <td>Second Info stuff</td> </tr> <tr> <td>More data</td> </tr> </table>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Repetitive HTML data
by naChoZ (Curate) on Sep 24, 2003 at 13:18 UTC | |
by jeffa (Bishop) on Sep 24, 2003 at 13:56 UTC | |
|
Re: Repetitive HTML data
by reyjrar (Hermit) on Sep 24, 2003 at 13:00 UTC | |
by hmerrill (Friar) on Sep 24, 2003 at 15:01 UTC | |
|
Re: Repetitive HTML data
by neilwatson (Priest) on Sep 24, 2003 at 15:43 UTC | |
|
Re: Repetitive HTML data
by theAcolyte (Pilgrim) on Sep 26, 2003 at 04:38 UTC |