| 1 |
Object::Result version 0.000003 |
| 2 |
|
| 3 |
This module adds a new keyword to Perl: "result" |
| 4 |
|
| 5 |
That keyword acts like a "return", but instead of a list of values to |
| 6 |
return, it takes a single block which specifies the behaviour (i.e. the |
| 7 |
methods and operator overloading) of an object to be returned. |
| 8 |
|
| 9 |
The intention is to make it much less onerous to return clean, properly |
| 10 |
encapsulated objects...instead of returning lists of values or |
| 11 |
references to arrays or hashes. |
| 12 |
|
| 13 |
|
| 14 |
INSTALLATION |
| 15 |
|
| 16 |
To install this module, run the following commands: |
| 17 |
|
| 18 |
perl Makefile.PL |
| 19 |
make |
| 20 |
make test |
| 21 |
make install |
| 22 |
|
| 23 |
|
| 24 |
DEPENDENCIES |
| 25 |
|
| 26 |
* Keyword::Simple |
| 27 |
|
| 28 |
* PPI |
| 29 |
|
| 30 |
* Method::Signatures |
| 31 |
|
| 32 |
|
| 33 |
COPYRIGHT AND LICENCE |
| 34 |
|
| 35 |
Copyright (C) 2014, Damian Conway |
| 36 |
|
| 37 |
This library is free software; you can redistribute it and/or modify |
| 38 |
it under the same terms as Perl itself. |