• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/H03-May-2022-251105

t/H19-Sep-2010-156113

Build.PLH A D06-May-2010586 2522

ChangesH A D04-May-201051 42

MANIFESTH A D06-May-2010127 1211

META.ymlH A D19-Sep-2010575 2827

Makefile.PLH A D19-Sep-2010521 2018

READMEH A D04-May-20101.4 KiB7240

README

1Lvalue
2
3
4Lvalue - wrap objects with lvalue getters and setters
5
6version 0.1
7
8SYNOPSIS
9
10Assuming an object with standard getter / setter functionality (that is, any arguments
11is a setter, no arguments is a getter):
12
13    my $obj = SomePackage->new();
14
15    $obj->value(5);
16
17    print $obj->value(); # prints 5
18
19    use Lvalue;
20
21    Lvalue->wrap( $obj );
22
23    $obj->value = 10;
24
25    print $obj->value; # prints 10
26
27    $_ += 2 for $obj->value;
28
29    print $obj->value; # prints 12
30
31
32INSTALLATION
33
34To install this module, run the following commands:
35
36	perl Build.PL
37	./Build
38	./Build test
39	./Build install
40
41SUPPORT AND DOCUMENTATION
42
43After installing, you can find documentation for this module with the
44perldoc command.
45
46    perldoc Lvalue
47
48You can also look for information at:
49
50    RT, CPAN's request tracker
51        http://rt.cpan.org/NoAuth/Bugs.html?Dist=Lvalue
52
53    AnnoCPAN, Annotated CPAN documentation
54        http://annocpan.org/dist/Lvalue
55
56    CPAN Ratings
57        http://cpanratings.perl.org/d/Lvalue
58
59    Search CPAN
60        http://search.cpan.org/dist/Lvalue/
61
62
63COPYRIGHT AND LICENCE
64
65Copyright (C) 2010 Eric Strom
66
67This program is free software; you can redistribute it and/or modify it
68under the terms of either: the GNU General Public License as published
69by the Free Software Foundation; or the Artistic License.
70
71See http://dev.perl.org/licenses/ for more information.
72