Import.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a Subroutinesub 0.0% 0 / 4 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 22 CC 1 SCAR 6.9
CC
1
Cov
0%
import
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 # -*- perl -*-
2  
3 # Copyright (c) 2008 by AdCopy
4 # Author: Jeff Weisberg
5 # Created: 2008-Dec-18 20:26 (EST)
6 # Function: import/export
7 #
8 # $Id: Import.pm,v 1.9 2010/10/30 20:27:53 jaw Exp $
9  
10 package AC::Import;
11 use strict;
12  
13 our @EXPORT = 'import';
14  
15  
16 sub import {
17 my $class = shift;
18 my $caller = caller;
19  
20 no strict;
21 no warnings;
22 for my $f ( @{$class . '::EXPORT'} ){
23 *{$caller . '::' . $f} = \&{ $class . '::' . $f };
24 }
25 }
26  
27 =head1 NAME
28  
29 AC::Import - Import/Export functions
30  
31 =head1 SYNOPSIS
32  
33 use AC::Import;
34 use strict;
35 our @EXPORT = qw(function1 function2);
36  
37 =head1 SEE ALSO
38  
39 Exporter
40  
41 =cut
42  
43 1;
44