And this would be this week's winner for "most egregious use of a hash". Why isn't that just an array?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", );
In reply to Re: On Challenging Ways to Learn Perl
by merlyn
in thread On Challenging Ways to Learn Perl
by mobiusinversion
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |