Class::ehierarchy 0.90 release hierarchally ordered objects

Source: Internet
Author: User
Keywords class::ehierarchy hierarchally ordered objects
Tags api based class class::ehierarchy code counter http objects

Class::ehierarchy is a hierarchally ordered object that is intended to be used as a base class. This class allows you to define the relationship between a parent-child object and to ensure that an object is ordered to be destroyed, based on this relationship, rather than the sequence of breaches of the Perl reverse order based on the reference count.

This version of Class::ehierarchy 0.90 was completely rewritten, breaking the previous API. Some features have been lost, but some new features have been gained.

Sample code:

Package&http://www.aliyun.com/zixun/aggregation/37954.html ">NBSP;  Fooobj;      Sub _initalize ($@) {my $obj = shift;      my%args = @_;      my $rv = 1; if (-t $args {FILE}) {_declprop ($obj, Ceh_priv |          Ceh_scalar, ' counter ');          $obj->property (' counter ', 1); $RV = _declprop ($obj, Ceh_pub |      Ceh_scalar, keys%args);      else {$rv = 0;  return $RV;      Sub _inccounter ($) {my $obj = shift;  return $obj->property (' counter ', $obj->property (' counter ') + 1); }

Download Address: http://www.digitalmages.com/projects/ClassEHierarchy/files/Class-EHierarchy-0.90.tar.gz

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.