in reply to Re^2: Simple Text Manipulation
in thread Simple Text Manipulation

Because of the way Perl counts lines in conditional blocks, the problem is actually on line 41!