| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Importer::Zim::Lexical; |
|
3
|
|
|
|
|
|
|
$Importer::Zim::Lexical::VERSION = '0.9.0'; |
|
4
|
|
|
|
|
|
|
# ABSTRACT: Import functions as lexical subroutines |
|
5
|
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
46459
|
use 5.018; |
|
|
2
|
|
|
|
|
13
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
487
|
use Importer::Zim::Base 0.8.0; |
|
|
2
|
|
|
|
|
8120
|
|
|
|
2
|
|
|
|
|
2289
|
|
|
9
|
2
|
|
|
2
|
|
70
|
BEGIN { our @ISA = qw(Importer::Zim::Base); } |
|
10
|
|
|
|
|
|
|
|
|
11
|
2
|
|
|
2
|
|
13
|
use Sub::Inject 0.2.0; |
|
|
2
|
|
|
|
|
19
|
|
|
|
2
|
|
|
|
|
48
|
|
|
12
|
2
|
|
|
2
|
|
10
|
use Importer::Zim::Utils 0.8.0 qw(DEBUG carp); |
|
|
2
|
|
|
|
|
22
|
|
|
|
2
|
|
|
|
|
8
|
|
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub import { |
|
15
|
3
|
|
|
3
|
|
361
|
my $class = shift; |
|
16
|
|
|
|
|
|
|
|
|
17
|
3
|
|
|
|
|
4
|
carp "$class->import(@_)" if DEBUG; |
|
18
|
3
|
|
|
|
|
10
|
my @exports = $class->_prepare_args(@_); |
|
19
|
|
|
|
|
|
|
|
|
20
|
3
|
|
|
|
|
536
|
@_ = map { @{$_}{qw(export code)} } @exports; |
|
|
7
|
|
|
|
|
10
|
|
|
|
7
|
|
|
|
|
16
|
|
|
21
|
3
|
|
|
|
|
12
|
goto &Sub::Inject::sub_inject; |
|
22
|
|
|
|
|
|
|
} |
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub export_to { |
|
25
|
0
|
|
|
0
|
0
|
|
shift; |
|
26
|
0
|
|
|
|
|
|
goto &Sub::Inject::sub_inject; |
|
27
|
|
|
|
|
|
|
} |
|
28
|
|
|
|
|
|
|
|
|
29
|
2
|
|
|
2
|
|
330
|
no Importer::Zim::Utils qw(DEBUG carp); |
|
|
2
|
|
|
|
|
4
|
|
|
|
2
|
|
|
|
|
13
|
|
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
1; |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
#pod =encoding utf8 |
|
34
|
|
|
|
|
|
|
#pod |
|
35
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
|
36
|
|
|
|
|
|
|
#pod |
|
37
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Scalar::Util' => 'blessed'; |
|
38
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Scalar::Util' => |
|
39
|
|
|
|
|
|
|
#pod ( 'blessed' => { -as => 'typeof' } ); |
|
40
|
|
|
|
|
|
|
#pod |
|
41
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Mango::BSON' => ':bson'; |
|
42
|
|
|
|
|
|
|
#pod |
|
43
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Foo' => { -version => '3.0' } => 'foo'; |
|
44
|
|
|
|
|
|
|
#pod |
|
45
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Krazy::Taco' => qw(tacos burritos poop); |
|
46
|
|
|
|
|
|
|
#pod |
|
47
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
|
48
|
|
|
|
|
|
|
#pod |
|
49
|
|
|
|
|
|
|
#pod "It's... INCREDIBLE! There's stuff down here I've never even |
|
50
|
|
|
|
|
|
|
#pod dreamed of! I'm gonna try to blow it up." |
|
51
|
|
|
|
|
|
|
#pod – Dib |
|
52
|
|
|
|
|
|
|
#pod |
|
53
|
|
|
|
|
|
|
#pod This is a backend for L which gives lexical scope |
|
54
|
|
|
|
|
|
|
#pod to imported subroutines. |
|
55
|
|
|
|
|
|
|
#pod |
|
56
|
|
|
|
|
|
|
#pod =head1 DEBUGGING |
|
57
|
|
|
|
|
|
|
#pod |
|
58
|
|
|
|
|
|
|
#pod You can set the C environment variable |
|
59
|
|
|
|
|
|
|
#pod for get some diagnostics information printed to C. |
|
60
|
|
|
|
|
|
|
#pod |
|
61
|
|
|
|
|
|
|
#pod IMPORTER_ZIM_DEBUG=1 |
|
62
|
|
|
|
|
|
|
#pod |
|
63
|
|
|
|
|
|
|
#pod =head1 SEE ALSO |
|
64
|
|
|
|
|
|
|
#pod |
|
65
|
|
|
|
|
|
|
#pod L |
|
66
|
|
|
|
|
|
|
#pod |
|
67
|
|
|
|
|
|
|
#pod =cut |
|
68
|
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
__END__ |