The value of $a is 16. We have skipped statements 6 and 7.pp2@nereida:~/Ltesting$ perl -wd skipdeb.pl Loading DB routines from perl5db.pl version 1.28 Editor support available. Enter h or `h h' for help, or `man perldebug' for more help. main::(skipdeb.pl:2): my $a = 4; DB<1> l 2==> my $a = 4; 3: my $b = 4; 4: my $c = 4; 5 6: $a = 5; 7: $a += 1; 8: L:$a = $c*$a; 9: $a = $c*$b; 10: print "$a\n"; DB<1> c 6 main::(skipdeb.pl:6): $a = 5; DB<2> b 9 DB<3> goto L main::(skipdeb.pl:9): $a = $c*$b; DB<4> p $a 16
Hope it helps
Casiano
In reply to Re: How to skip a step in perldebug?
by casiano
in thread How to skip a step in perldebug?
by repellent
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |