- or download this
use Exporter;
our @ISA = qw(Exporter);
...
our %EXPORT_TAGS;
$EXPORT_TAGS{all} = [@EXPORT_OK];
- or download this
our @EXPORT_OK = (@wpi_c_functions, @wpi_perl_functions);
our %EXPORT_TAGS;
...
$EXPORT_TAGS{wiringPi} = [@wpi_c_functions];
$EXPORT_TAGS{perl} = [@wpi_perl_functions];
$EXPORT_TAGS{all} = [@wpi_c_functions, @wpi_perl_functions];
- or download this
our @EXPORT = qw(imgcopyright);
- or download this
sub import {
my ($class, %opts) = @_;
...
*{"$pkg\::$sub_name"} = \&_plugins;
}
}