Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 61 lines (33 sloc) 1.213 kB
14833ec @dams make github happy
authored
1 =pod
2
3 =head1 NAME
4
5 o - syntactic sugar to make Mo one-liners easier
6
7 =head1 VERSION
8
9 version 0.100
10
11 =head1 SYNOPSIS
12
13 # create a Mo class on the fly ...
14 perl -Mo=Foo -e 'has bar => ( default => sub { q[baz] } ); print Foo->new->bar' # prints baz
15
16 =head1 DESCRIPTION
17
18 o.pm is a simple source filter that adds
19 C<package $name; use Mo;>
20 to the beginning of your script and was entirely created because typing
21 C<perl -e'package Foo; use Mo; ...'> is annoying.
22
23 =head1 INTERFACE
24
25 o provides exactly one method and it's automatically called by perl:
26
27 =over 4
28
29 =item B<import($package)>
30
31 Pass a package name to import to be used by the source filter. The
32 package defaults to C<Class> if none is given.
33
34 =back
35
36 =head1 DEPENDENCIES
37
38 You will need L<Filter::Simple> and eventually L<Mo>
39
40 =head1 INCOMPATIBILITIES
41
42 None reported. But it is a source filter and might have issues there.
43
44 =head1 BUGS
45
46 See L<Mo/BUGS> for details on reporting bugs.
47
48 =head1 AUTHOR
49
50 Damien "dams" Krotkine
51
52 =head1 COPYRIGHT AND LICENSE
53
54 This software is copyright (c) 2011 by Damien "dams" Krotkine.
55
56 This is free software; you can redistribute it and/or modify it under
57 the same terms as the Perl 5 programming language system itself.
58
59 =cut
60
Something went wrong with that request. Please try again.