X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FExporter.pm;h=38e2beaa5f5b8f1f3c95314a4985cf58de534270;hb=26f0aa174f72fdf5fd803278212b7cefa83c8734;hp=1b6a14aa3ea1449c9fa2a094bca67a1f9452ed9d;hpb=12f4a95a9552fd877d5efca81da5b60bc132d4c8;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Exporter.pm b/lib/Mouse/Exporter.pm index 1b6a14a..38e2bea 100644 --- a/lib/Mouse/Exporter.pm +++ b/lib/Mouse/Exporter.pm @@ -2,7 +2,7 @@ package Mouse::Exporter; use strict; use warnings; -use Carp qw(confess); +use Carp (); my %SPEC; @@ -120,7 +120,7 @@ sub build_import_methods{ my %default; foreach my $keyword(@{$default_list}){ $default{$keyword} = $exports{$keyword} - || confess(qq{The $exporting_package package does not export "$keyword"}); + || Carp::confess(qq{The $exporting_package package does not export "$keyword"}); } $args{DEFAULT} = \%default; } @@ -142,7 +142,7 @@ sub do_import { my($package, @args) = @_; my $spec = $SPEC{$package} - || confess("The package $package package does not use Mouse::Exporter"); + || Carp::confess("The package $package package does not use Mouse::Exporter"); my $into = _get_caller_package(ref($args[0]) ? shift @args : undef); @@ -161,7 +161,7 @@ sub do_import { } elsif($arg =~ s/^://){ my $group = $spec->{groups}{$arg} - || confess(qq{The $package package does not export the group "$arg"}); + || Carp::confess(qq{The $package package does not export the group "$arg"}); push @exports, @{$group}; } else{ @@ -169,7 +169,8 @@ sub do_import { } } - $^H |= $strict_bits; # strict->import; + # strict->import; + $^H |= $strict_bits; # warnings->import('all', FATAL => 'recursion'); ${^WARNING_BITS} |= $warnings::Bits{all}; ${^WARNING_BITS} |= $warnings_extra_bits; @@ -206,7 +207,7 @@ sub do_import { foreach my $keyword(@exports){ push @export_table, $keyword => ($spec->{EXPORTS}{$keyword} - || confess(qq{The $package package does not export "$keyword"}) + || Carp::confess(qq{The $package package does not export "$keyword"}) ); } Mouse::Util::install_subroutines($into, @export_table); @@ -222,7 +223,7 @@ sub do_unimport { my($package, $arg) = @_; my $spec = $SPEC{$package} - || confess("The package $package does not use Mouse::Exporter"); + || Carp::confess("The package $package does not use Mouse::Exporter"); my $from = _get_caller_package($arg); @@ -267,7 +268,7 @@ Mouse::Exporter - make an import() and unimport() just like Mouse.pm =head1 VERSION -This document describes Mouse version 0.67 +This document describes Mouse version 0.77 =head1 SYNOPSIS