supriyoch_2008 has asked for the wisdom of the Perl Monks concerning the following question:
Hi Perlmonks,
I have a text file (data.txt) having the values of a few variables as given below:
x1=3.8; x2=5.8; x3=4.1; y1=10.1; y2=11.6; y3=12.7I am interested to enter these data in a perl program for doing further calculations like x1*y1, x2*y2, x3*y3 or (x1*y1)/x2 etc. Which perl syntax/chapter should I read so that I can enter the values of the variables from the data file (data.txt) into the perl program for doing further calculations?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I enter the data of different variables from a text file into a perl program?
by davido (Cardinal) on May 05, 2012 at 19:25 UTC | |
Re: How can I enter the data of different variables from a text file into a perl program?
by moritz (Cardinal) on May 05, 2012 at 19:38 UTC | |
Re: How can I enter the data of different variables from a text file into a perl program?
by ww (Archbishop) on May 05, 2012 at 19:53 UTC | |
Re: How can I enter the data of different variables from a text file into a perl program?
by JavaFan (Canon) on May 05, 2012 at 22:20 UTC |