Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: how to evaluate a variable in a string?

by chunlou (Curate)
on Jul 30, 2003 at 22:01 UTC ( #279386=note: print w/replies, xml ) Need Help??


in reply to how to evaluate a variable in a string?

Similar to fglock's first answer except for the variation:
$file=~s/$from/eval'"'.$to.'"'/sge;

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2017-07-26 06:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (383 votes). Check out past polls.