in reply to Re: reading from middle of file
in thread reading from middle of file
Question 1:
First, if I'm printing a string and the value of a calculation of 2 variables, as in:
...how can I do it so that the value of the calculation shows up?? Right now I'm getting something like:print "The average is $total/$count";
Do I have to use PRINTF??? In fact, while we're on this subject, how can I format the value so that it only has two decimal places?The average is 60/9
Question 2:
What are these NEXT, UNLESS and LAST statements? In my whooping 1 week of PERL, I haven't yet come across these statements. I'd like to learn. Can you suggest a good place for looking up PERL syntax/statements?
Thanks a bunch
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: reading from middle of file
by davorg (Chancellor) on Aug 12, 2004 at 16:50 UTC | |
|
Re^3: reading from middle of file
by Random_Walk (Prior) on Aug 12, 2004 at 16:55 UTC |