in reply to package parameters
If this is supposed to export subroutines arg1 and args2, you can use the Exporter standard module:use MyPackage qw/arg1 arg2/ ;
Of course, if you want to do something else with those args, you can get creative with your custom import subroutine as shown by Golo and trammell above.package MyPackage; require Exporter; our @ISA = qw(Exporter); our @EXPORT_OK = qw(arg1 arg2); # symbols to export on request
|
|---|