Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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;


Comment on Re: how to evaluate a variable in a string?
Download Code

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 exploiting the Monastery: (3)
As of 2015-08-30 01:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (346 votes), past polls