- or download this
perl -we "my %hash = @ARGV" Andy 1995 Sarah 1990 Sam 1992 UNEXPECTED
Odd number of elements in hash assignment at -e line 1.
- or download this
@ARGV = qw( Andy 1995 Sarah 1990 Sam 1992 UNEXPECTED );
my %hash;
...
# hash is: ("Sam", 1992, "Andy", 1995, "Sarah", 1990)
- or download this
use strict;
use warnings;
...
Odd number of elements in pairs at -e line 1.
# hash is: ("Sarah", 1990, "Andy", 1995, "UN", undef, "Sam", 1992)