Variable interpolation?

2002-01-06 Thread Mad B . Jones
Hi everyone. A little thing I fail to understand... This of course works: $name="Dave"; $string="Hello $name"; print $string; outputting: Hello Dave Why, then, does it not work when I get the string "Hello $name" out of a file? $name="Dave"; $in="textfile.txt"; open(I

Re: Variable interpolation?

2002-01-07 Thread Mad B . Jones
06/01/02 17:20:37, Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> a écrit: >The contents of @string are raw text. You'll need to expand the variables >in it manually: > > perldoc -q 'expand variables' > >That FAQ will tell you what to do. Thanks, Jeff, for taking the time to answer. My problem was,