Created
June 15, 2012 08:03
-
-
Save ytnobody/2935308 to your computer and use it in GitHub Desktop.
ハッシュに配列を入れておいてその配列からJOIN
This file contains hidden or 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; | |
my %hash = ( | |
hoge => [ 1, 2, 3, 4 ], | |
fuga => [ 3, 4, 6, 8, 2 ], | |
piyo => [ 4, 6, 9, 2 ], | |
); | |
print join ', ', map { join ': ', @{$hash{$_}} } keys %hash; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Data::Dumper要らなかったです><