Thanks, that's a helpful one-liner.
Perl 5.8.0 gives the output you show, however, my older version (which is 5.004_04) gives:
$ /opt/perl5/bin/perl -MData::Dumper -we '%h={};$h{a}=1;print Dumper \ +%h' Odd number of elements in hash list at -e line 1. $VAR1 = { 'a' => 1 };
In reply to Re: Re: Construction/initialisation of empty hash
by muntfish
in thread Construction/initialisation of empty hash
by muntfish
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |