in reply to Reading variables from a txt file
Welcome Perl_Padawan,
If your "file" needs to be displayed as HTML, then you might find a previous post of mine interesting. Please see http://www.perlmonks.org/?node_id=974964
What it allows you to do is keep the HTML, CSS, etc. external to your program and once you call the 'sub' in your code, it replaces your tokens with the dynamic data that you built with your Perl script. This keeps the Perl clean and the HTML, etc in a separate file that can be modified without touching the Perl code. The more I use the technique, the more I appreciate the Monk that put it on PM.
Good Luck
"Well done is better than well said." - Benjamin Franklin
|
|---|