Problems? Is your data what you think it is? | |
PerlMonks |
Print a string X times?by rastoboy (Monk) |
on Aug 03, 2010 at 23:47 UTC ( [id://852770]=perlquestion: print w/replies, xml ) | Need Help?? |
rastoboy has asked for the wisdom of the Perl Monks concerning the following question:
I know this is a silly question, but it's really bugging me. I need to print a bunch of -'s of an arbitrary computed length, such as: ------- or maybe: ----------------- At the moment I compute the length needed and do: I could have sworn I've read a simple way to simply say "print X this many times". It's just not very elegent or "perlish" seeming and I'd appreciate any feedback you care to give!
Back to
Seekers of Perl Wisdom
|
|