line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Importer::Zim::Lexical; |
3
|
|
|
|
|
|
|
$Importer::Zim::Lexical::VERSION = '0.10.0'; |
4
|
|
|
|
|
|
|
# ABSTRACT: Import functions as lexical subroutines |
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
55777
|
use 5.018; |
|
2
|
|
|
|
|
13
|
|
7
|
|
|
|
|
|
|
|
8
|
2
|
|
|
2
|
|
474
|
use Sub::Inject 0.2.0 (); |
|
2
|
|
|
|
|
672
|
|
|
2
|
|
|
|
|
202
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub import { |
11
|
3
|
|
|
3
|
|
1031
|
require Importer::Zim::Base; |
12
|
3
|
|
|
|
|
4033
|
Importer::Zim::Base->VERSION('0.12.0'); |
13
|
3
|
|
|
|
|
17
|
goto &Importer::Zim::Base::import_into; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
0
|
|
|
0
|
0
|
|
sub export_to { shift; goto &Sub::Inject::sub_inject } |
|
0
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
0
|
|
|
0
|
|
|
sub _export_to { goto &Sub::Inject::sub_inject } |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
#pod =encoding utf8 |
23
|
|
|
|
|
|
|
#pod |
24
|
|
|
|
|
|
|
#pod =head1 SYNOPSIS |
25
|
|
|
|
|
|
|
#pod |
26
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Scalar::Util' => 'blessed'; |
27
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Scalar::Util' => |
28
|
|
|
|
|
|
|
#pod ( 'blessed' => { -as => 'typeof' } ); |
29
|
|
|
|
|
|
|
#pod |
30
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Mango::BSON' => ':bson'; |
31
|
|
|
|
|
|
|
#pod |
32
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Foo' => { -version => '3.0' } => 'foo'; |
33
|
|
|
|
|
|
|
#pod |
34
|
|
|
|
|
|
|
#pod use Importer::Zim::Lexical 'Krazy::Taco' => qw(tacos burritos poop); |
35
|
|
|
|
|
|
|
#pod |
36
|
|
|
|
|
|
|
#pod =head1 DESCRIPTION |
37
|
|
|
|
|
|
|
#pod |
38
|
|
|
|
|
|
|
#pod "It's... INCREDIBLE! There's stuff down here I've never even |
39
|
|
|
|
|
|
|
#pod dreamed of! I'm gonna try to blow it up." |
40
|
|
|
|
|
|
|
#pod – Dib |
41
|
|
|
|
|
|
|
#pod |
42
|
|
|
|
|
|
|
#pod This is a backend for L which gives lexical scope |
43
|
|
|
|
|
|
|
#pod to imported subroutines. |
44
|
|
|
|
|
|
|
#pod |
45
|
|
|
|
|
|
|
#pod =head1 DEBUGGING |
46
|
|
|
|
|
|
|
#pod |
47
|
|
|
|
|
|
|
#pod You can set the C environment variable |
48
|
|
|
|
|
|
|
#pod for get some diagnostics information printed to C. |
49
|
|
|
|
|
|
|
#pod |
50
|
|
|
|
|
|
|
#pod IMPORTER_ZIM_DEBUG=1 |
51
|
|
|
|
|
|
|
#pod |
52
|
|
|
|
|
|
|
#pod =head1 SEE ALSO |
53
|
|
|
|
|
|
|
#pod |
54
|
|
|
|
|
|
|
#pod L |
55
|
|
|
|
|
|
|
#pod |
56
|
|
|
|
|
|
|
#pod =cut |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
__END__ |