in reply to reading a line from file two times
You've had help from the other Monks. I've got a question:
Why do you want to do this?
I've found relatively few reasons for doing something like this, and most involved error handling in languages which were sensitive to the type of data being read (usually something to the effect of
read(1,'(i4)', iostat = irc) integer_value</p> if(irc /= 0) then backspace(1) read(1,'(a)') string write(*,*)'error number',irc,'reading ',string,' Bye!' call abort() endif
I don't understand the need to do something like this in Perl.
emc
At that time [1909] the chief engineer was almost always the chief test pilot as well. That had the fortunate result of eliminating poor engineering early in aviation.
—Igor Sikorsky, reported in AOPA Pilot magazine February 2003.
|
|---|