Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (14)
As of 2016-09-30 14:46 GMT
Find Nodes?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:

    Results (569 votes). Check out past polls.