tadman has asked for the wisdom of the Perl Monks concerning the following question:
Did I miss the part where they talk about having to put your sets first? Either way, this seems to be an oversight in Exporter::Heavy.use Foo qw[ baz :bar ]; # ERROR: ":bar" not exported use Foo qw[ :bar baz ]; # OK
Is this making it worse, or is this already patched in the more recent versions?*** Heavy.pm Wed May 15 19:38:18 2002 --- /usr/local/lib/perl5/5.6.1/Exporter/Heavy.pm Wed May 15 19:35:5 +1 2002*************** *** 36,48 **** } } ! if ($imports[0] =~ m#^[/!:]#){ my $tagsref = \%{"${pkg}::EXPORT_TAGS"}; my $tagdata; my %imports; my($remove, $spec, @names, @allexports); # negated first item implies starting with default set: ! unshift @imports, ':DEFAULT' if $imports[0] =~ m/^!/; foreach $spec (@imports){ $remove = $spec =~ s/^!//; --- 54,66 ---- } } ! if (grep {m#^[/!:]#} @imports){ my $tagsref = \%{"${pkg}::EXPORT_TAGS"}; my $tagdata; my %imports; my($remove, $spec, @names, @allexports); # negated first item implies starting with default set: ! unshift @imports, ':DEFAULT' if (grep{m/^!/} @imports); foreach $spec (@imports){ $remove = $spec =~ s/^!//;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exporter::Heavy Ordering Shenanigans?
by IlyaM (Parson) on May 16, 2002 at 05:46 UTC | |
|
Re: Exporter::Heavy Ordering Shenanigans?
by chromatic (Archbishop) on May 16, 2002 at 03:55 UTC | |
by tadman (Prior) on May 16, 2002 at 05:03 UTC |