in reply to Printing a hollow square of Asterisks
my $x = 4; my $y = 4; for my $xx (1..$x) { for my $yy(1..$y) { if( something ){ print ' '; } else { print "*"; } } print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Printing a hollow square of Asterisks
by Anonymous Monk on Mar 04, 2009 at 14:31 UTC | |
by ww (Archbishop) on Mar 04, 2009 at 15:12 UTC | |
by Anonymous Monk on Mar 04, 2009 at 14:40 UTC |