Filewatcher File Search File Search
Catalog
Content Search
» » » » »

selfvars-0.20.tar.gz

Homepage:-
Package version:-
Architecture:-
Distribution:Perl-CPAN
Filename:selfvars-0.20.tar.gz

/selfvars-0.20/README

NAME
    selfvars - Provide $self, @args, %opts and %hopts variables for OO
    programs

SYNOPSIS
        package MyClass;

        ### Import $self, @args, %opts and %hopts into your package:
        use selfvars;

        ### Or name the variables explicitly:
        # use selfvars -self => 'self', -args => 'args', -opts => 'opts', -hopts => 'hopts';

        ### Write the constructor as usual:
more»

/selfvars-0.20/Changes

[Changes for 0.20 - 2010-11-23]

* Added %hopts for ($self, key => value) styled calls:

    package Foo;
    use selfvars;
    sub meth {
        $self->{x} = $hopts{x};
    }

    # Call it like this:
    $foo->meth(x => 4);

  Contributed by Roman Galeev.

[Changes for 0.11 - 2010-07-09]

* LICENSING CHANGE: This compilation and all individual files in it
  are now under the nullary CC0 1.0 Uni
more»

Browse inside selfvars-0.20.tar.gz

         [DIR]selfvars-0.20/ (9)

Download selfvars-0.20.tar.gz

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2016 FileWatcher.com