in reply to Re: What's the difference between a hash ?
in thread What's the difference between a hash ?
Incidentally, that "stupid" way of assigning hashes was taken from the Makefile.PL that Inline::C autogenerates. (I guess that has something to do with the way that Inline::C determines its parameters.)use warnings; use strict; my $h = {FOO => 1, BAR => 2}; my %hash = %{$h}; print $hash{FOO}, "\n"; print $hash{BAR}, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What's the difference between a hash ?
by BrowserUk (Patriarch) on Nov 19, 2006 at 08:33 UTC | |
by syphilis (Archbishop) on Nov 19, 2006 at 09:17 UTC | |
by BrowserUk (Patriarch) on Nov 19, 2006 at 12:06 UTC | |
by syphilis (Archbishop) on Nov 19, 2006 at 13:52 UTC | |
by BrowserUk (Patriarch) on Nov 19, 2006 at 15:20 UTC |