File: Base.pm

package info (click to toggle)
libexporter-autoclean-perl 0.01-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 276 kB
  • sloc: perl: 3,921; makefile: 2
file content (25 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package Base;
use strict;
use warnings;
use Exporter::AutoClean;

sub import {
    my $class  = shift;
    my $caller = caller;

    {
        no strict 'refs';
        push @{ $caller . '::ISA' }, $class;
    }

    Exporter::AutoClean->export(
        $caller,
        method => sub { 'export function' },
    );
}

sub method {
    'object method';
}

1;