You probably want to try commenting said code out. The interpreter will compile any code it finds. As far as Perl knows, your exit could be on only one branch of a conditional statement.
POD format commenting is a good way to comment out large chunks of code.
-kel