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
open INPUT, a.txt;
my $name=Anish;
my $temp=;
while (INPUT)
{
$temp=$temp.$_;
}
close(INPUT);
print Content is: $temp;
In the output I want the
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 if you
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;
Always
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
Thanks it is working fine
Anish
- Original Message -
From: Dave Gray [EMAIL PROTECTED]
To: beginners perl beginners@perl.org
Sent: Monday, January 17, 2005 11:43 PM
Subject: Re: Substitute Varaible
On Mon, 17 Jan 2005 16:11:54 +0530, Anish Kumar K.
[EMAIL PROTECTED] wrote:
Hi