Softpedia
 


LINUX CATEGORIES:



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

    MooseX::Struct 0.06

    Download button

    No screenshots available
    Downloads: 262  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Jarrod Overson | More programs
    Perl Artistic License / FREE
    November 18th, 2008, 16:22 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    MooseX::Struct description

    Struct-like interface for Moose Object creation

    MooseX::Struct is a struct-like Perl interface for Moose Object creation.

    SYNOPSIS

     use MooseX::Struct;

     struct 'MyClass::Foo' => (
     bar => 'Scalar',
     baz => 'Array',
     );
     
     my $obj = new MyClass::Foo;
     
     $obj->bar(44); # sets $obj->{bar} to 44
     
     print $obj->bar; # prints 44
     
     ### or

     package MyClass::Foo;
     use MooseX::Struct;

     ### This will default to the current package : 'MyClass::Foo'

     struct (
     bar => 'Scalar',
     baz => 'Array',
     );

     ### or create your struct at compile-time
     
     use MooseX::Struct 'MyClass::Foo' => (
     bar => 'Scalar',
     baz => 'Array',
     );

     ### Immutable Moose Objects

     package MyClass::Foo;
     use MooseX::Struct;

     immutable struct (
     bar => 'Scalar',
     baz => 'Array',
     );



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Moose Object | Perl interface | Perl module | Moose | Object | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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