|
|
| go ahead... be a heretic | |
| PerlMonks |
Comment on |
| ( #3333=superdoc: print w/ replies, xml ) | Need Help?? |
Why does the original code behave differently when i use the while(<FILEHANDLE>) loop as a file handle to read a particular section of code(say between line 2-10) instead of using EOF ..??? Because while( <DATA> ) { reads and discards a line each time it is executed. And that line contains a header (or data) that is required. If you need to skip 29 lines, do so before entering the while loop:
And to exit the loop after the 40th line has be read:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In reply to Re^9: Reading tab/whitespace delimited text file
by BrowserUk
|
|