Problems? Is your data what you think it is? | |
PerlMonks |
Re: inserting HTML file in a PERL scriptby Ctrl-z (Friar) |
on May 30, 2005 at 12:16 UTC ( [id://461770]=note: print w/replies, xml ) | Need Help?? |
I would second scooterm's comment. In addition, the answers above dont really solve your problem:
To sum up, by the time perl starts executing you want it to run exactly as your program does now. But for you (while developing) you want the html fragments in their own file, to edit with Frontpage and use Perl's existing $variable syntax. Consider using a source filter.
This will paste the contents of files into your script before perl begins executing.
So this
would become this With the file includeme.txt being
This will do what you want - but be careful what you wish for. At least you can concentrate on hacking the HTML rather than adapting existing code to an API or debugging a broken wheel. Once you get the HTML the way you want it, you can simply paste it back into the code to get better performance.
In Section
Seekers of Perl Wisdom
|
|