Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2016-07-23 14:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (220 votes). Check out past polls.