X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FExporter.pm;h=19fd187681a0921d7864252a61f57a2d6cc7143e;hb=ce5ccc1a691c80f510dc6ccd1e92c7727dd5cbd2;hp=75b433e930ca401b5df9975a2c10bf3ce6ca1126;hpb=202b6e5700cfd5387c5fd1ea414f9f0c0a34b36a;p=gitmo%2FMoose.git diff --git a/lib/Moose/Exporter.pm b/lib/Moose/Exporter.pm index 75b433e..19fd187 100644 --- a/lib/Moose/Exporter.pm +++ b/lib/Moose/Exporter.pm @@ -24,7 +24,7 @@ my %EXPORT_SPEC; sub setup_import_methods { my ( $class, %args ) = @_; - my $exporting_package = $args{exporting_package} ||= caller(); + $args{exporting_package} ||= caller(); $class->build_import_methods( %args, @@ -136,7 +136,7 @@ sub _make_exporter { local %$seen = ( $exporting_package => 1 ); - return uniq( _follow_also_real($exporting_package) ); + return reverse uniq( _follow_also_real($exporting_package) ); } sub _follow_also_real { @@ -196,7 +196,7 @@ sub _make_sub_exporter_params { my $class = shift; my $packages = shift; my $export_recorder = shift; - my $is_reexport = shift; + my $is_reexport = shift; my %exports; @@ -373,7 +373,7 @@ sub _make_import_sub { my $exporting_package = shift; my $exporter = shift; my $exports_from = shift; - my $is_reexport = shift; + my $is_reexport = shift; return sub { @@ -544,7 +544,7 @@ sub _make_unimport_sub { my $exporting_package = shift; my $exports = shift; my $export_recorder = shift; - my $is_reexport = shift; + my $is_reexport = shift; return sub { my $caller = scalar caller(); @@ -562,7 +562,7 @@ sub _remove_keywords { my $package = shift; my $keywords = shift; my $recorded_exports = shift; - my $is_reexport = shift; + my $is_reexport = shift; no strict 'refs';