Working join with map : map « Hash « Perl






Working join with map

      

print join(", ", (map {my $value = $_; $value *= 2} (1 .. 10)));

   
    
    
    
    
    
  

Related examples in the same category

1.Using map with hash