Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Class::Accessor::Complex 1.100880

    Download button

    No screenshots available
    Downloads: 267  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Marcel Grünauer | More programs
    Perl Artistic License / FREE
    May 29th, 2012, 02:48 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Class::Accessor::Complex description

    Arrays, hashes, booleans, integers, sets and more

    Class::Accessor::Complex is a Perl module that generates accessors for your class in the same spirit as Class::Accessor does. While the latter deals with accessors for scalar values, this module provides accessor makers for arrays, hashes, integers, booleans, sets and more.

    As seen in the synopsis, you can chain calls to the accessor makers. Also, because this module inherits from Class::Accessor, you can put a call to one of its accessor makers at the end of the chain.

    The accessor generators also generate documentation ready to be used with Pod::Generated.

    SYNOPSIS

     package MyClass;
     use base 'Class::Accessor::Complex';
     __PACKAGE__
     ->mk_new
     ->mk_array_accessors(qw(an_array))
     ->mk_hash_accessors(qw(a_hash))
     ->mk_integer_accessors(qw(an_integer))
     ->mk_class_hash_accessors(qw(a_hash))
     ->mk_set_accessors(qw(testset))
     ->mk_object_accessors('Some::Foo' => {
     slot => 'an_object',
     comp_mthds => [ qw(do_this do_that) ]
     });



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    class accessor | Perl module | arrays | hashes | booleans

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM