in reply to Re: regarding hash keys
in thread regarding hash keys

> you need to quote keys that contain \W

Seems you also need to quote keys that have leading digits followed by non-digits.

my %hash = ( 1 => 'foo', # ok key1 => 'bar', # ok 1key => 'baz', # error );

YuckFoo

Replies are listed 'Best First'.
Re: Re: Re: regarding hash keys
by DrHyde (Prior) on Sep 10, 2003 at 08:09 UTC
    Not always :-)

    %h = (1e3 => 'foo'); print keys %h;
    1000