Skip to content

Instantly share code, notes, and snippets.

@Shinpeim
Created June 17, 2016 06:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shinpeim/46e303bf059a7dd012929fa5d3c32f66 to your computer and use it in GitHub Desktop.
Save Shinpeim/46e303bf059a7dd012929fa5d3c32f66 to your computer and use it in GitHub Desktop.
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