jffry has asked for the wisdom of the Perl Monks concerning the following question:
File ddd.pm:use warnings; use strict; use ddd; print "APPLE = $apple \n"; exit 0;
Any thoughts?use strict; use warnings; package ddd; require Exporter; our @ISA = qw(Exporter); our @EXPORT = qw( $apple $pear ); use Readonly; Readonly our $apple => "funny"; Readonly our $pear => "bad"; 1;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Export Constants Common to Lots of Packages
by ikegami (Patriarch) on Nov 29, 2005 at 19:00 UTC | |
by jffry (Hermit) on Nov 29, 2005 at 19:57 UTC | |
by Ovid (Cardinal) on Nov 29, 2005 at 20:42 UTC | |
by ikegami (Patriarch) on Nov 29, 2005 at 21:25 UTC | |
by Ovid (Cardinal) on Nov 29, 2005 at 21:36 UTC | |
by ikegami (Patriarch) on Nov 29, 2005 at 21:33 UTC |