op - syntactic sugar to make mop one-liners easier
0.03
# Use mop on the fly perl -Mop -e 'class Point { has $!x is ro = 0; has $!y is ro = 0; method display { print "$!x, $!y" } } my $x = Point->new(x => 5, y => 7); $x->display'
op.pm is a simple wrapper around mop.pm that aliases its own import() to mop->import, allowing you to do perl -Mop rather than perl -Mmop.
import()
mop->import
perl -Mop
perl -Mmop
It is recommended that you do not use this in an actual file.
use
mop - A new object system for Perl 5
Matthew Horsfall (alh) <wolfsage@gmail.com>
This software is copyright (c) 2013-2014 by Infinity Interactive.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install mop, copy and paste the appropriate command in to your terminal.
cpanm
cpanm mop
CPAN shell
perl -MCPAN -e shell install mop
For more information on module installation, please visit the detailed CPAN module installation guide.