| 1 |
NAME |
| 2 |
|
| 3 |
Object::Import - a perl module that lets you import methods of a perl |
| 4 |
object or class to a package as plain functions. |
| 5 |
|
| 6 |
USAGE |
| 7 |
|
| 8 |
use Object::Import $object; |
| 9 |
foo(@bar); # now means $object->foo(@bar); |
| 10 |
|
| 11 |
|
| 12 |
See the pod documentation in the Object::Import module for more details |
| 13 |
on how to use this module. |
| 14 |
|
| 15 |
DEPENDENCIES |
| 16 |
|
| 17 |
Perl version 5.8 or later is required to use this module. |
| 18 |
If you have perl version 5.10.0 or later, you shouldn't need any more prerequisites to use this module. |
| 19 |
Otherwise, you may need to install the following modules. |
| 20 |
|
| 21 |
mro OR MRO::Compat |
| 22 |
Scalar::Util |
| 23 |
Test::More * |
| 24 |
File::Temp * |
| 25 |
Math::BigInt * |
| 26 |
|
| 27 |
(The modules marked with a star are needed only for testing.) |
| 28 |
|
| 29 |
This is a pure perl module, so you won't need a C compiler to build it. |
| 30 |
|
| 31 |
INSTALLING |
| 32 |
|
| 33 |
First, you should get the latest release of the module from CPAN, |
| 34 |
under the distribution name Object-Import. |
| 35 |
|
| 36 |
After that, you can install the module like any other perl module that |
| 37 |
uses ExtUtils::MakeMaker. For example, use these commands. |
| 38 |
|
| 39 |
tar xzf Object-Import-1.VVV.tar.gz |
| 40 |
cd Object-Import-1.VVV |
| 41 |
perl Makefile.PL |
| 42 |
make |
| 43 |
make test |
| 44 |
make install |
| 45 |
|
| 46 |
Where 1.VVV is the version number of the module you've got. |
| 47 |
|
| 48 |
If you're not familiar with the procedure of installing a perl module, |
| 49 |
you may want to read |
| 50 |
"http://search.cpan.org/~rjbs/perl-5.16.1/pod/perlmodinstall.pod" |
| 51 |
|
| 52 |
SEE ALSO |
| 53 |
|
| 54 |
Class::Exporter, Scope::With, Sub::Exporter, Acme::Nooo |
| 55 |
|
| 56 |
BUGS |
| 57 |
|
| 58 |
Please report bugs using the CPAN bug tracker (under the distribution |
| 59 |
name Object-Import), or, failing that, to C<[email protected]>. |
| 60 |
|
| 61 |
CREDITS |
| 62 |
|
| 63 |
The primary author and maintainer of this module is Zsban Ambrus |
| 64 |
C<[email protected]>. Some of the code was written by Max Maischein, who |
| 65 |
also gave the motivation to turn a prototype to the full module you see. |
| 66 |
Thanks to exussum0 for the original inspiration. |
| 67 |
|
| 68 |
COPYING |
| 69 |
|
| 70 |
Copyright (C) Zsban Ambrus 2010 |
| 71 |
|
| 72 |
This program is free software: you can redistribute it and/or modify |
| 73 |
it under the terms of either the GNU General Public License version 3, |
| 74 |
as published by the Free Software Foundation; or the "Artistic License" |
| 75 |
which comes with perl. |
| 76 |
|
| 77 |
This program is distributed in the hope that it will be useful, |
| 78 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 79 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 80 |
GNU General Public License for more details. |
| 81 |
|
| 82 |
A copy of the GNU General Public License can be found in the |
| 83 |
source tree of this module under the name "GPL", or else see |
| 84 |
"http://www.gnu.org/licenses/". A copy of the Artistic License can |
| 85 |
be found in the source tree under the name "ARTISTIC", or else see |
| 86 |
"http://search.cpan.org/~rjbs/perl-5.16.1/pod/perlartistic.pod". |
| 87 |
|
| 88 |
|