in reply to Re^2: substring too short and I don't care
in thread substring too short and I don't care

Correct - I didn't read that the OP wanted to keep the line. The intent was to show how to get past the substr error, the skipping of the print statement was not intended to be of consequence.
  • Comment on Re^3: substring too short and I don't care