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

Re: read in file with vars

by Zaxo (Archbishop)
on Jul 13, 2007 at 02:10 UTC ( #626354=note: print w/replies, xml ) Need Help??


in reply to read in file with vars

It sounds like what you really want is an html template mechanism. I like Template Toolkit for that.

You could call s/\$([a-zA-Z_]\w*)/${$1}/g on the slurped file, though you'd want to switch off warnings for that.

After Compline,
Zaxo

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://626354]
help
Chatterbox?
[Corion]: Hi choroba, Discipulus!
[Corion]: choroba: It's currently evening for you, isn't it? Or are you up in the middle of the night?

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2017-02-23 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?






    Results (342 votes). Check out past polls.