Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to debug a long while loop

by BrowserUk (Patriarch)
on May 17, 2007 at 12:01 UTC ( [id://615978]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    c:\test>615969 62
    57: Use of uninitialized value in array element at c:\test\615969.pl l
    +ine 66.
    ...
    Use of uninitialized value in array element at c:\test\615969.pl line 
    +25.
    Use of uninitialized value in array element at c:\test\615969.pl line 
    +25.
    60: 0,0->2,1
    
  2. or download this
    my $steps = shift( @ARGV ) || 64;
    
    ...
    ...
    # Change this number to solve more or less of the puzzle
        while ( $move < $steps ) {
    
  3. or download this
            my ($newx, $newy) = calculate_move($board, $x, $y);
            printf "\r$move: $x,$y->$newx,$newy\t";
    
  4. or download this
    c:\test>perl -v
    
    ...
    Binary build 811 provided by ActiveState Corp. http://www.ActiveState.
    +com
    ActiveState is a division of Sophos.
    Built Dec 13 2004 09:52:01
    
  5. or download this
    sub back {
        print "\n*** BACK ***\n";
    ...
    
  6. or download this
    c:\test>615969 61
    43: 0,7->-2,6
    ...
    15   14   23   02   17   42   21   04
    
    00   01   14   15   22   05   42   43
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://615978]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-26 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found