in reply to Re: mutliplying each element of a list by the same number
in thread mutliplying each element of a list by the same number

perl -MPDL -e '$n=shift; print +(sequence($n)+1)*$n'

Turning the resulting ndarray into a flattened Perl list (with the list method) or structured Perl array (with the unpdl method) is left as an exercise for the reader.