Slash Boxes
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • It’s certainly common for non-OO modules to inherit from Exporter, and it matches the first example in the Exporter synopsis. But the second example shows an alternative:

    package MyModule;
    use Exporter qw<import>;
    our @EXPORT_OK = qw<...>;
    I recently changed a large codebase to use that approach instead of inheritance.