Skip to content
Browse files

modern way of using Exporter

  • Loading branch information...
1 parent 665a869 commit 96353d2cac58d49b23086fa249cecdf59a5ff9fd @chorny chorny committed with Aug 24, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −0 Build.PL
  2. +1 −1 lib/Child.pm
  3. +1 −1 lib/Child/Util.pm
View
1 Build.PL
@@ -10,6 +10,7 @@ my $build = Module::Build->new(
create_readme => 1,
requires => {
'POSIX' => 0,
+ 'Exporter' => 5.57,
},
build_requires => {
'Test::More' => 0.88,
View
2 lib/Child.pm
@@ -6,7 +6,7 @@ use Child::Util;
use Child::Link::Proc;
use Child::Link::Parent;
-use base 'Exporter';
+use Exporter 'import';
our $VERSION = "0.007";
our @PROCS;
View
2 lib/Child/Util.pm
@@ -3,7 +3,7 @@ use strict;
use warnings;
use Carp qw/croak/;
-use base 'Exporter';
+use Exporter 'import';
our @EXPORT = qw/add_accessors add_abstract/;
sub _abstract {

0 comments on commit 96353d2

Please sign in to comment.
Something went wrong with that request. Please try again.