in reply to Is there a Perl5 module on CPAN that provides a function analogous to the Perl6 list-repeat operator?

Is there a particular reason you can't just use parentheses?

~$ perl -e 'print join('x', (1)x5),"\n"' 1x1x1x1x1

See Multiplicative Operators.

  • Comment on Re: Is there a Perl5 module on CPAN that provides a function analogous to the Perl6 list-repeat operator?
  • Download Code