print '-' for 1..$length; [download]
Previously mentioned "x" should be a bit faster at the cost of more memory.
In reply to Re: Print a string X times? by ikegami in thread Print a string X times? by rastoboy