[Israel.pm] a hash question

Gaal Yahas gaal at forum2.org
Mon Feb 2 13:07:06 PST 2004


On Mon, Feb 02, 2004 at 09:50:27PM +0200, Shlomi Fish wrote:
> Actually, you can substitute these calls with:
> 
> <<<
> $myhash{"a"} = 3;
> $myhash{"b"} = 4;
> $myhash{"c"} = 7;
> >>>

And even @myhash{qw/a b c/} = (3, 4, 7) works, as I lately learned.

-- 
Gaal Yahas <gaal at forum2.org>
http://gaal.livejournal.com/



More information about the Perl mailing list