Skip to content

Instantly share code, notes, and snippets.

@mix3
Created December 2, 2014 12:02
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 mix3/ece610942c114c1ce4b5 to your computer and use it in GitHub Desktop.
Save mix3/ece610942c114c1ce4b5 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
sub hoge {
return;
}
sub fuga {
return 1;
}
sub piyo {
return {
a => hoge(),
b => fuga(),
};
}
print Dumper piyo();
@mix3
Copy link
Author

mix3 commented Dec 2, 2014

Odd number of elements in anonymous hash at /Users/mix3/tmp/sample.pl line 17.
$VAR1 = {
          'a' => 'b',
          '1' => undef
        };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment