-------
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!while ($length) { $separator .= '-'; }
In reply to Print a string X times? by rastoboy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |