Created
June 17, 2016 06:03
-
-
Save Shinpeim/46e303bf059a7dd012929fa5d3c32f66 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use Data::Dumper; | |
my @vals = ( | |
[1, 2], | |
[3, 4] | |
); | |
my @mapped = map {join("-", @$_)} @vals; | |
warn Dumper [@mapped]; | |
# $VAR1 = [ | |
# '1-2', | |
# '3-4' | |
# ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment