in reply to Print a string X times?

print '-' x $number;

Replies are listed 'Best First'.
Re^2: Print a string X times?
by rastoboy (Monk) on Aug 04, 2010 at 00:01 UTC
    OMG lol. I knew I'd seen something simple like that.

    Thank you very much.