x#
x (repetition) operator
Synopsis#
$line = '-' x 80; # 80 dashes
$pad = ' ' x $width;
$s = 'ab' x 3; # "ababab"
Description#
Repeats a string a given number of times.
Pops the repeat count (right operand) and the string (left operand) from the stack. Returns a new string consisting of the left operand concatenated with itself COUNT times. A count of zero or less produces an empty string. Inf and NaN counts are treated as zero (matching perl5).
See also#
x, perlop