http://qs321.pair.com?node_id=550950


in reply to substr in nested foreach loop

How often are you getting the warning?

Beware, that if that last input line of your file ends in a newline, you'll probably get an empty string ('') as your last line from perl...

Replies are listed 'Best First'.
Re^2: substr in nested foreach loop
by sarani (Sexton) on May 23, 2006 at 03:35 UTC
    I'm getting the warning for the last input line from the file, and I'm getting it the number of lines there are in the outer loop file ... :D That might be it...
      Glad to be of help... ;-)