Your skill will accomplish what the force of many cannot |
|
PerlMonks |
mutliplying each element of a list by the same numberby steph_bow (Pilgrim) |
on May 15, 2008 at 13:51 UTC ( [id://686727]=perlquestion: print w/replies, xml ) | Need Help?? |
steph_bow has asked for the wisdom of the Perl Monks concerning the following question: Dear Monks, I would like to know if there is a simple way to multiply each element of a list by the same number. I would like to do, for example : 10* (1..10);
Thanks a lot !
Back to
Seekers of Perl Wisdom
|
|