in reply to How not to write subroutines

My guess is that the extra bit of code (warn "Debugging not enabled!\n";) comes from some point where you wanted to check which branch you had followed. In the middle of all of the other stuff you cut out, you were debugging your debugging code.

--
brian d foy <brian@stonehenge.com>
Subscribe to The Perl Review

Replies are listed 'Best First'.
Re^2: How not to write subroutines
by gustavderdrache (Acolyte) on Jan 15, 2006 at 19:38 UTC

    Something like that. It was more "Let's make sure I take out all the debugging print statements before this code leaves my sight" than anything else.

    "If you go on with this nuclear arms race, all you are going to do is make the rubble bounce" -- Winston Churchill