Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Reading variables from a txt file

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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://980584]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2018-01-22 05:39 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (231 votes). Check out past polls.