in reply to Re: Exporting Variables
in thread Exporting Variables
Regarding exporting without naming things
That imports without naming things. The OP was asking about avoiding to have to name all the things to export.
$ perl -e' BEGIN { package Foo; use Exporter qw( import ); sub f {} $INC{"Foo.pm"} = __FILE__; } use Foo "/./"; f(); ' Undefined subroutine &main::f called at -e line 10.
|
|---|