Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Ovid (2709)

Ovid
  (email not shown publicly)
http://publius-ovidius.livejournal.com/
AOL IM: ovidperl (Add Buddy, Send Message)

Stuff with the Perl Foundation. A couple of patches in the Perl core. A few CPAN modules. That about sums it up.

Journal of Ovid (2709)

Monday March 08, 2004
06:11 PM

Exporter with attributes?

[ #17821 ]

So there I was, trying to track down that bug, when I saw that there were two problems. The first was simple: @EXPORT had the sub listed, so naturally the sub I wanted wasn't going to be exported.

The second problem is a "metaproblem". Using Exporter requires that subs be defined in two places. From a documentation standpoint, it's very handy to pop open a module and see everything that's going to be exported. On the other hand, wouldn't the following be nice?

use Exporter::Attributes;

sub foo : Export {}
sub bar : Export_ok {}
sub baz : Export_tag(some_group) {}

Would you use it?

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.