Exporter.pm's export_to_level() argument handling buggy
Zachary Miller [Tue, 20 Oct 1998 20:52:20 +0000 (15:52 -0500)]
Message-Id: <199810210152.UAA07792@simon.er.usgs.gov>

p4raw-id: //depot/perl@2068

lib/Exporter.pm

index 3f42e40..a66079a 100644 (file)
@@ -170,8 +170,7 @@ sub export {
 sub export_to_level
 {
       my $pkg = shift;
-      my ($level, $junk) = (shift, shift);  # need to get rid of first arg
-                                            # we know it already.
+      my $level = shift;
       my $callpkg = caller($level);
       $pkg->export($callpkg, @_);
 }