Join the mapped value : join « String « Perl






Join the mapped value

    


print join(", ", (map {my $value = $_; $value += 1} 1, 2, 3));

   
    
    
    
  








Related examples in the same category

1.Join strings
2.Takes its input and joins it into a single string.
3.Join the result of the split function
4.Join variables
5.Join with
6.Join with 'map chr'
7.Join with 'map lc'
8.Joining string with empty string