Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Chess Board Single Loop

by jaredor (Priest)
on Oct 04, 2013 at 06:13 UTC ( [id://1056839]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl
    use strict;
    ...
            $col = $col + 1;
        }
    }
    
  2. or download this
    #!/usr/bin/env perl
    use strict;
    ...
        print $num % 8 ? "\t" : "\n";
        $num = $num + 1;
    }
    
  3. or download this
    use strict;
    use warnings;
    for (my $x = 1; $x <= 64; $x += 1) {
        print $x, $x % 8 ? "\t" : "\n";
    }
    
  4. or download this
    perl -e 'print $_, $_ % 8 ? "\t" : "\n" for 1..64;'
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2024-03-29 13:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found