Re: Substitute Varaible

2005-01-17 Thread Anish Kumar K.
Thanks it is working fine Anish - Original Message - From: "Dave Gray" <[EMAIL PROTECTED]> To: "beginners perl" Sent: Monday, January 17, 2005 11:43 PM Subject: Re: Substitute Varaible > On Mon, 17 Jan 2005 16:11:54 +0530, Anish Kumar K. > <[EMA

Re: Substitute Varaible

2005-01-17 Thread John W. Krahn
Anish Kumar K. wrote: Hi I need help regarding substituion of varaibles with values That is a Frequently Asked Question. perldoc -q "How can I expand variables in text strings" Say I have a txt file (a.txt) which has only one line: Hi $name The PL file open INPUT, "a.txt"; You should *ALW

Re: Substitute Varaible

2005-01-17 Thread Dave Gray
On Mon, 17 Jan 2005 16:11:54 +0530, Anish Kumar K. <[EMAIL PROTECTED]> wrote: > Hi I need help regarding substituion of varaibles with values > > Say I have a txt file (a.txt) > > which has only one line: > Hi $name > > The PL file > use strict; use warnings; > open INPUT, "a.txt"

Re: Substitute Varaible

2005-01-17 Thread Tor Hildrum
On Mon, 17 Jan 2005 16:11:54 +0530, Anish Kumar K. <[EMAIL PROTECTED]> wrote: > Hi I need help regarding substituion of varaibles with values > > Say I have a txt file (a.txt) > > which has only one line: > Hi $name Don't think of $name as a perl variable, but as a placeholder. It looks better i