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...