Re: Getting the values of some variables

2004-04-15 Thread Octavian Rasnita
; Sent: Thursday, April 15, 2004 5:47 PM Subject: Re: Getting the values of some variables > do you use double quotes to interpolate the string ? > > > Octavian Rasnita wrote: > > >Hi all, > > > >I have a text file that contains a text something lik

RE: Getting the values of some variables

2004-04-15 Thread Charles K. Clarkson
Octavian Rasnita <[EMAIL PROTECTED]> wrote: : : I have a text file that contains a text something like : this: : : This text contains a $aa variable and a $bb variable : and a $cc one. : : My program reads this text and I want to replace the : variables with their values, then return the result : s

Re: Getting the values of some variables

2004-04-15 Thread frbn
do you use double quotes to interpolate the string ? Octavian Rasnita wrote: Hi all, I have a text file that contains a text something like this: This text contains a $aa variable and a $bb variable and a $cc one. My program reads this text and I want to replace the variables with their value

Getting the values of some variables

2004-04-15 Thread Octavian Rasnita
Hi all, I have a text file that contains a text something like this: This text contains a $aa variable and a $bb variable and a $cc one. My program reads this text and I want to replace the variables with their values, then return the result string. How can I do this? Is using s/(\$\w+)/eval($