You want to do something like:
#=================================
use strict;
use vars qw/@season @ISA @EXPORT_OK/;
@ISA = qw/Exporter/;
@EXPORT_OK = qw/@season/;
#=================================
@season = qw/January February March April May June July August September October November December/;
1;
Then in your script use:
use MySelect qw/@season/;
It doesn't really seem worth creating a module just for that though.
Code:
package MySelect; #=================================
use strict;
use vars qw/@season @ISA @EXPORT_OK/;
@ISA = qw/Exporter/;
@EXPORT_OK = qw/@season/;
#=================================
@season = qw/January February March April May June July August September October November December/;
1;
Then in your script use:
use MySelect qw/@season/;
It doesn't really seem worth creating a module just for that though.