From: Chris Prather Date: Wed, 6 Feb 2008 21:47:01 +0000 (+0000) Subject: add default class name "Class" to oose.pm X-Git-Tag: 0_37~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ea6f14dbd053b3f8c031a4e046ca183c9a858f14;p=gitmo%2FMoose.git add default class name "Class" to oose.pm --- diff --git a/lib/oose.pm b/lib/oose.pm index 38a658f..be54c5f 100644 --- a/lib/oose.pm +++ b/lib/oose.pm @@ -1,14 +1,13 @@ package oose; - use strict; use warnings; -our $VERSION = '0.01'; +our $VERSION = '0.02'; our $AUTHORITY = 'cpan:STEVAN'; BEGIN { my $package; - sub import { $package = $_[1] } + sub import { $package = $_[1] || 'Class' } use Filter::Simple sub { s/^/package $package;\nuse Moose;\n/; } }