in reply to Hash keys not DWIMming
So you can use a key that starts with a digit!#!/usr/bin/perl use warnings; use strict; my %h = ( '512_x64' => '24', 'world' => 'hello'); print $h{world}, "\n"; # line 5 print $h{'512_x64'}, "\n"; # line 6
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Hash keys not DWIMming
by syphilis (Archbishop) on Oct 07, 2010 at 07:04 UTC | |
by 7stud (Deacon) on Oct 07, 2010 at 07:57 UTC | |
by trwww (Priest) on Oct 07, 2010 at 16:32 UTC |