Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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?
[holli]: you should visit the link i posted and answer my question
[stonecolddevin]: good afternoon all
[holli]: if you know what's good for you
[holli]: hahaha
[stonecolddevin]: hey holli, long time no chat
[holli]: g'day sir
[holli]: can you believe they only did nine episodes this season? GoT that is
[holli]: here's the link for you again devin: https://hastebin. com/uhifarelir.rb

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (7)
As of 2017-09-26 21:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (297 votes). Check out past polls.

    Notices?