summaryrefslogtreecommitdiff
path: root/lib/subs.pm
blob: 8b5835770fa5c8cf00a93d49e4c5023b0d6abbdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package subs;

require 5.000;

$ExportLevel = 0;

sub import {
    my $callpack = caller;
    my $pack = shift;
    my @imports = @_;
    foreach $sym (@imports) {
	*{"${callpack}::$sym"} = \&{"${callpack}::$sym"};
    }
};

1;