http://www.perlmonks.org?node_id=882364


in reply to Re^3: eof not recognised when applying diamond operator to invocation arguments?
in thread eof not recognised when applying diamond operator to invocation arguments?

Any compelling reason you can't use the more direct version you mentioned yourself elsewhere in the thread?
Yes ... I need to use nested loops because I am reading the input file, parsing the input line and - if and when I find a certain pattern - read 100 lines further. If I use the direct version I will keep losing one line because the inside loop and the outside loop both read an line one after the other.
  • Comment on Re^4: eof not recognised when applying diamond operator to invocation arguments?