in reply to On Challenging Ways to Learn Perl

my %headers = ( 0 => "file-type", 1 => "file-size-in-bytes", 2 => "must-be-0", 3 => "must-be-0", 4 => "offset-to-raster-in-bytes", 5 => "size-of-following-header-in-bytes", 6 => "width-in-pixels", 7 => "height-in-pixels", 8 => "device-planes", 9 => "bits-per-pixel", 10 => "type-of-compression", 11 => "raster-size-in-bytes", 12 => "horizontal-pixels-per-meter", 13 => "vertical-pixels-per-meter", 14 => "number-of-colors-used", 15 => "number-of-important-colors", );
And this would be this week's winner for "most egregious use of a hash". Why isn't that just an array?

Replies are listed 'Best First'.
Re^2: On Challenging Ways to Learn Perl
by mobiusinversion (Beadle) on Mar 28, 2008 at 04:32 UTC
    Wait, you mean there is actually a weekly contest for hash abuse!!! OMG, I would love that! Where is the node???