How can I repeat a string in Perl?

Posted by izb on Stack Overflow See other posts from Stack Overflow or by izb
Published on 2008-11-10T10:01:24Z Indexed on 2010/04/07 2:33 UTC
Read the original article Hit count: 616

Filed under:
|
|
|
|

In Python, if I do this:

print "4" * 4

I get

> "4444"

In Perl, I'd get

> 16

Is there an easy way to do the former in Perl?

© Stack Overflow or respective owner

Related posts about perl

Related posts about python