in reply to Need help printing rectangle of asterisks (was: Beginner question)
HINT: Once you understand that part, you can solve your whole problem by using the multiplicative operator twice, rather than using for loops.my $char = '*'; print $char x 5; # prints "*****"
|
---|