Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Tuesday January 07, 2003
10:51 PM

"When Your Best Just Isn't Good Enough"

[ #9825 ]

From the Department of Why Wasn't I Doing This Before:

Sometimes I create arrays with map. Usually after I do that I like to access elements of the array. Most times I forget which order I put things in the array. Every time until now I forget about code comments.

I put the index of the value under the bit that creates it.

my @bits  = map { $hash->{$_}{value} }
    qw( Domain Path Name Value Expires );
    #     0     1    2     3      4

This is nothing new. When I look at perlfunc for various functions, like localtime, Tom (or Nat?) does the same thing. Simple, effective, and completely beyond my simple capabilities until all of a sudden I suddenly discover it in a fit of convergent evolution.

Sometimes I wonder if my best just isn't good enough.