KW.pm Coping with Other Peoples' Perl Code #17

How about print "got here" if ($debug); ?

  • nothing is wrong with scattering print statements in your code

  • but you have more power with the interactive debugger

  • evaluate any piece of code

  • _modify_ running code

  • pause a loop when you get to a particular value

<< Previous | Index | Next >> Copyright © 2011 Daniel Allen