in reply to use constant and exporter
package MyPackage; use 5.006; use strict; use warnings; use Data::Dumper; use constant VALID => 1; use constant INVALID => 2; use constant ERROR => 0; use base qw(Exporter); our @EXPORT_OK = qw(VALID INVALID ERROR); our %EXPORT_TAGS = ( 'all' => \@EXPORT_OK, 'codes' => [ qw(VALID INVALID ERROR)], ); our @EXPORT; #Intentionally left blank our $VERSION = v0.0.1;
Makeshifts last the longest.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: use constant and exporter
by Flame (Deacon) on Jan 28, 2003 at 22:15 UTC | |
by Aristotle (Chancellor) on Jan 28, 2003 at 22:33 UTC | |
by Flame (Deacon) on Jan 28, 2003 at 23:08 UTC |