| 1 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | |||
| 4 | package Sub::Exporter::Simple; | ||
| 5 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | $Sub::Exporter::Simple::VERSION = '1.103210'; | |
| 7 | } | ||
| 8 | |||
| 9 | # ABSTRACT: just export some subs | ||
| 10 | |||
| 11 | 1 | ▶ | use Sub::Exporter 'setup_exporter'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | |||
| 13 | 1 | ▶ | sub import { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 14 | 1 | my ( $self, @subs ) = @_; | |
| 15 | 1 | return setup_exporter( { exports => [ @subs ], into_level => 1 } ); | |
| 16 | } | ||
| 17 | |||
| 18 | 1 | 1; | |
| 19 | |||
| 20 | |||
| 21 | __END__ | ||