type "watch $i==10"
when $i is 10, the script pauses.
ANJAN PURKAYASTHA 写道:
I have a simple script that I'm using to learn debugging:
#! /usr/bin/perl -w
use strict;
use warnings;
my $i= 0;
while ($i<= 15){
print ("$i\n");
$i++;
}
Question: i would like to attach a breakpoint in the program at the step at
which $i takes on the value of 10. What command is used to do this?
All feedback will be appreciated.
TIA
Anjan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/