programming-examples/perl/Hash/Working join with map.pl

1 line
64 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
print join(", ", (map {my $value = $_; $value *= 2} (1 .. 10)));