Class::MakeMethods::Composite::Global

Class::MakeMethods::Composite::Global is a Perl module that contains global data.
Download

Class::MakeMethods::Composite::Global Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Matthew Simon Cavalletto
  • Publisher web site:
  • http://search.cpan.org/~ferrency/

Class::MakeMethods::Composite::Global Tags


Class::MakeMethods::Composite::Global Description

Class::MakeMethods::Composite::Global is a Perl module that contains global data. Class::MakeMethods::Composite::Global is a Perl module that contains global data.SYNOPSIS package MyClass; use Class::MakeMethods::Composite::Global ( scalar => , array => , hash => , ); ... MyClass->foo( 'Foozle' ); print MyClass->foo(); print MyClass->new(...)->foo(); # same value for any instance print MySubclass->foo(); # ... and for any subclass MyClass->my_list(0 => 'Foozle', 1 => 'Bang!'); print MyClass->my_list(1); MyClass->my_index('broccoli' => 'Blah!', 'foo' => 'Fiddle'); print MyClass->my_index('foo');The Composite::Global suclass of MakeMethods provides basic accessors for shared data.Class::MakeMethods Calling InterfaceWhen you use this package, the method declarations you provide as arguments cause subroutines to be generated and installed in your module.You can also omit the arguments to use and instead make methods at runtime by passing the declarations to a subsequent call to make().You may include any number of declarations in each call to use or make(). If methods with the same name already exist, earlier calls to use or make() win over later ones, but within each call, later declarations superceed earlier ones.You can install methods in a different package by passing -TargetClass => package as your first arguments to use or make. Requirements: · Perl


Class::MakeMethods::Composite::Global Related Software