Better Code Through Destruction
Perl 5's reference counting scheme almost always keeps memory usage predictable...except for one corner case. The Resource Acquisition Is Initialization strategy helps avoid memory leaks--and can improve your use of exceptions, alarms, other resources, and even transactional systems. Igor Gariev demonstrates.
Read the entire article here
edit: Programming/Perl/auto___better_code_through_destruction.wikieditish...