Home >> perldebugging >>
perl debugging
The strict and warnings pragmatic modules are the two most important for debugging.
use strict vars;# Variables must be declared with my or our or written explicitly as package variables.
use strict subs;# Bareword strings are not allowed because of their possible conflict with subroutine names.
use strict refs;# Symbolic references are prohibited.
Perl debugger
To start the Perl debugger, we use the -d option. For example, to debug a program called mybuggyscript.pl, we would use
$ perl -d script.pl
Perl functions
|
Download perl
download stable version of perl
Perl 5.10.1
|
|