227

Debugging Perl
Debugging Tecniques

  • Perl provides several forms of debugging capabilities, including

    • Those specific to Perl

      • The perl -c option to check syntax

      • The perl -w option to check sanity (warnings)

    • Those more typical of compiled languages

      • Print statements!

      • The perl -d script args option to run a script under the control of an interactive debugger

          NOTE: To use the -d option, the Perl package must have been compiled with the perl debugging feature enabled