in reply to Re: Uer Perl Variable in file
in thread Uer Perl Variable in txt file
I have a file which has contents like this
______file.txt_______
I am $name
I am from $city
I live $food
I got $car
Using perl code I am reading line one by one from file.txt. When I print line using $_ it does not replace variable in text file with variable values in .pl file but it prints the line as it is.
-Vinay
______file.txt_______
I am $name
I am from $city
I live $food
I got $car
Using perl code I am reading line one by one from file.txt. When I print line using $_ it does not replace variable in text file with variable values in .pl file but it prints the line as it is.
-Vinay
In Section
Seekers of Perl Wisdom