[Chicago-talk] neat little optimization

Steven Lembark lembark at wrkhors.com
Wed Oct 13 13:21:22 CDT 2004

>      $cached{$self} += shift;

You might also save time using

	exists $cached{$item}

instead of checking the value: saves you from actually having
to retrieve any data from the hash.

Steven Lembark                                       85-09 90th Street
Workhorse Computing                                Woodhaven, NY 11421
lembark at wrkhors.com                                     1 888 359 3508

More information about the Chicago-talk mailing list