| 1 | |||
| 2 | package Importer::Zim::Lexical; | ||
| 3 | 2 | $Importer::Zim::Lexical::VERSION = '0.10.0'; | |
| 4 | # ABSTRACT: Import functions as lexical subroutines | ||
| 5 | |||
| 6 | 2 | ▶ | use 5.018; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 2 | ▶ | use Sub::Inject 0.2.0 (); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | |||
| 10 | 3 | ▶ | sub import { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 11 | 3 | require Importer::Zim::Base; | |
| 12 | 3 | Importer::Zim::Base->VERSION('0.12.0'); | |
| 13 | 3 | goto &Importer::Zim::Base::import_into; | |
| 14 | } | ||
| 15 | |||
| 16 | 0 | ▶ | sub export_to { shift; goto &Sub::Inject::sub_inject } |
|
Subroutine
export_to: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 17 | |||
| 18 | 0 | ▶ | sub _export_to { goto &Sub::Inject::sub_inject } |
|
Subroutine
_export_to: not called CC=1 SCAR=6.9
| |||
| 19 | |||
| 20 | 2 | 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<Importer::Zim> which gives lexical scope | ||
| 43 | #pod to imported subroutines. | ||
| 44 | #pod | ||
| 45 | #pod =head1 DEBUGGING | ||
| 46 | #pod | ||
| 47 | #pod You can set the C<IMPORTER_ZIM_DEBUG> environment variable | ||
| 48 | #pod for get some diagnostics information printed to C<STDERR>. | ||
| 49 | #pod | ||
| 50 | #pod IMPORTER_ZIM_DEBUG=1 | ||
| 51 | #pod | ||
| 52 | #pod =head1 SEE ALSO | ||
| 53 | #pod | ||
| 54 | #pod L<Importer::Zim> | ||
| 55 | #pod | ||
| 56 | #pod =cut | ||
| 57 | |||
| 58 | __END__ | ||