[ABE.pm] notes from post-meeting

Faber J. Fedor faber at linuxnj.com
Thu Jul 12 06:58:58 PDT 2007


If I had learned stuff like this at YAPC, I would've liked it more:

I just discovered that this:

    my %f;
    foreach $fieldname ( keys %{$Messages{$id}} ) {
       $f{$fieldname} = $Messages{$id}{$fieldname};
    }

can be written as

    my %f = %{$Messages{$id}};


Is this what you call a hash slice?

-- 
 
Regards,
 
Faber Fedor
President
Linux New Jersey, Inc.
908-320-0357
800-706-0701

http://www.linuxnj.com





More information about the ABE-pm mailing list