In Python, if I do this:
print \"4\" * 4
I get
> \"4444\"
In Perl, I\'d get
> 16 >
All answers, given so far, missed to mention that the operator x does not only work on string literals but also on string variables or expressions that build strings:
x
$msg = "hello "; print $msg x 2; print ($msg x 2) x 2;