use strict; use warnings; my $max = shift; my @rl = ( 0 .. $max ); my @ml = map { $_ * 10 } grep { $_ } @rl; print qq{$_\n} for @ml;
Cheers,
JohnGG
In reply to Re: mutliplying each element of a list by the same number
by johngg
in thread mutliplying each element of a list by the same number
by steph_bow
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |