Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Reading variables from a txt file

by flexvault (Parson)
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 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


Comment on Re: Reading variables from a txt file

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (10)
As of 2014-07-30 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (229 votes), past polls