X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlrun.pod;h=7c567887a9d667a9917bc9ba5e802ede2c189b11;hb=5cb3728cfe288ad05e8d10c8176f72378da2238f;hp=138e34499c7b76267845ede592d6283ca3a0a616;hpb=317ea90d97caba0232674f77b3cbed1394243c39;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlrun.pod b/pod/perlrun.pod index 138e344..7c56788 100644 --- a/pod/perlrun.pod +++ b/pod/perlrun.pod @@ -301,9 +301,11 @@ See L. sets debugging flags. To watch how it executes your program, use B<-Dtls>. (This works only if debugging is compiled into your Perl.) Another nice value is B<-Dx>, which lists your compiled -syntax tree. And B<-Dr> displays compiled regular expressions. As an -alternative, specify a number instead of list of letters (e.g., B<-D14> is -equivalent to B<-Dtls>): +syntax tree. And B<-Dr> displays compiled regular expressions; +the format of the output is explained in L. + +As an alternative, specify a number instead of list of letters (e.g., +B<-D14> is equivalent to B<-Dtls>): 1 p Tokenizing and parsing 2 s Stack snapshots @@ -334,6 +336,9 @@ If you're just trying to get a print out of each line of Perl code as it executes, the way that C provides for shell scripts, you can't use Perl's B<-D> switch. Instead do this + # If you have "env" utility + env=PERLDB_OPTS="NonStop=1 AutoTrace=1 frame=2" perl -dS program + # Bourne shell syntax $ PERLDB_OPTS="NonStop=1 AutoTrace=1 frame=2" perl -dS program