$exports{$sym} = 1;
}
}
- for (@_) {
- #need to match first to avoid "Modification of a read-only value attempted"
- if (/^\+/ and s/^\+//) {
- (\&{"$pkg\::$_"})->(); #try AUTOLOAD now so calls are inlined
- }
- }
if ($Verbose or $Debug
or grep {/\W/ or $args and not exists $exports{$_}
or @fail and $_ eq $fail[0]
specifications are being processed and what is actually being imported
into modules.
-=head2 Constants can be inlined
-
-AUTOLOADed constants can be inlined by prefixing them with a C<+>:
-
- use Socket qw(+AF_INET);
-
-Thusly prefixed constants are defined during the symbol import phase of
-compilation, which means that by runtime they are true inlined constants.
-
=head2 Exporting without using Export's import method
Exporter has a special method, 'export_to_level' which is used in situations