Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: variable interpretation while reading from a file

by Anonymous Monk
on Nov 29, 2013 at 10:37 UTC ( #1064939=note: print w/replies, xml ) Need Help??

in reply to variable interpretation while reading from a file

What I am missing here?

When they're in a file that isn't a perl program, and perl isn't executing that file, perl doesn't consider them perl code, so there is no interpolation that perl will do

What you've got there is called a template, so you need a template engine to do interpolation, like String::Interpolate/ String::Interpolate::RE , String::Defer, Interpolation, Template,Text::Xslate...

  • Comment on Re: variable interpretation while reading from a file

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1064939]
[Eily]: English copied French's habit of having a polite singular you, and lost thou through the ages :D
[Discipulus]: I havent took thine book, search it thyself.. sound very good and cool! i definitevely use Shakespeare's english
Discipulus is lazily looking his automated migration in backgound and has lot of free tiime..

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (9)
As of 2017-11-23 11:27 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (333 votes). Check out past polls.