Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: variable interpretation while reading from a file

by boftx (Deacon)
on Nov 29, 2013 at 10:09 UTC ( #1064934=note: print w/replies, xml ) Need Help??


in reply to variable interpretation while reading from a file

I think you would need to do an eval of some type on $_ to make that happen, and that is BAD NEWS(tm)! You'll probably need to do some sort of regex substitution instead to keep it relatively safe.

It helps to remember that the primary goal is to drain the swamp even when you are hip-deep in alligators.

Replies are listed 'Best First'.
Re^2: variable interpretation while reading from a file
by amma (Novice) on Nov 29, 2013 at 11:35 UTC

    Regex method worked, thanks

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1064934]
help
Chatterbox?
[Corion]: Two-way data binding means that if you change something in a text box, the corresponding variable in your Javascript gets updated immediately as well, and if you then change the variable, the corresponding text box also gets updated
[Corion]: That is a horrible approach that was also taken by Access, but if you have hooks that prevent automatic saving to the database, it is incredibly handy

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2017-03-30 07:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (355 votes). Check out past polls.