|Do you know where your variables are?|
Print a string X times?by rastoboy (Monk)
|on Aug 03, 2010 at 23:47 UTC||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:
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!