Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Reading variables from a txt file

by flexvault (Prior)
on Jul 08, 2012 at 12:36 UTC ( #980584=note: print w/ replies, xml ) Need Help??

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

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

Comment on Re: Reading variables from a txt file

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://980584]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-09-05 02:29 GMT
Find Nodes?
    Voting Booth?

    My preferred temperature scale is:

    Results (151 votes), past polls