On Jan 6, Mad B.Jones said:

>    $name="Dave";
>    $in="textfile.txt";
>    open(INFILE, "<$in");
>    @string=<INFILE>;
>    $string="$string[0]";

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.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to