Home : General : Perl Programming :

General: Perl Programming: Re: [chmod] Using a package: Edit Log

Here is the list of edits for this post
Re: [chmod] Using a package
You want to do something like:

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.

Last edited by:

Paul: May 7, 2002, 2:41 AM

Edit Log: