guard against double import
[gitmo/Moo.git] / lib / oo.pm
CommitLineData
79cfb919 1package oo;
2
3use strictures 1;
4use Moo::_Utils;
5
6BEGIN {
7 my $package;
8 sub import {
9 $package = $_[1] || 'Class';
10 if ($package =~ /^\+/) {
11 $package =~ s/^\+//;
12 _load_module($package);
13 }
14 }
15 use Filter::Simple sub { s/^/package $package;\nuse Moo;\n/; }
16}
17
181;