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

I'm not sure what that operator is, so here are two possibilities.

If you want multiple copies of the same value,

( EXPR ) x $x # Parens required

If you you want to generate multiple values from the same expression,

map { EXPR } 1..$x
  • Comment on Re: Is there a Perl5 module on CPAN that provides a function analogous to the Perl6 list-repeat operator?
  • Select or Download Code