in reply to Re: Chess Board Single Loop
in thread Chess Board Single Loop

bigsipper,
I upvoted this node because it is the same idea I would have used. Here is how I would have written it:
#!/usr/bin/perl use strict; use warnings; for my $x (1 .. 64) { printf("%.2d ", $x); print "\n" if not $x % 8; }
I noticed in another thread where you indicated you have been programming Perl for 13 years. That's longer than myself as I have only been at it for 11. I find it odd with so many years of experience that you still use the -w flag rather than the lexically scoped warnings pragma and chose to treat $x as an undeclared global. These things have been considered best practices for ages. Is there a reason you don't use them?

Cheers - L~R