Skip to content

Instantly share code, notes, and snippets.

@hiroyukim
Created August 26, 2013 06:17
Show Gist options
  • Save hiroyukim/6338506 to your computer and use it in GitHub Desktop.
Save hiroyukim/6338506 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
use Data::Dumper;
my @hoge = qw/aa dd ee ff/;
my %hash = (
test => @hoge,
);
warn Dumper \%hash;
Odd number of elements in hash assignment at aa.pl line 7.
$VAR1 = {
'test' => 'aa',
'ff' => undef,
'dd' => 'ee'
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment