pandr has asked for the wisdom of the Perl Monks concerning the following question:
and then use it like this:#constants.pl package Const; $important_number = 2
But alas, faithful applying the "-w" option to all my doings, I am punished with a warning: "Name "Const::important_number" used only once: possible typo at somescript.pl line 3." Any wisdom on how to avoid this?#somescript.pl require 'constants.pl'; print "Think about this: ", $Const::important_number, "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Namespace woes
by t0mas (Priest) on Jun 13, 2000 at 13:06 UTC | |
by merlyn (Sage) on Jun 13, 2000 at 20:04 UTC | |
by t0mas (Priest) on Jun 13, 2000 at 21:03 UTC | |
|
Re: Namespace woes
by btrott (Parson) on Jun 13, 2000 at 20:40 UTC | |
|
Re: Namespace woes
by chromatic (Archbishop) on Jun 13, 2000 at 21:17 UTC | |
by gregorovius (Friar) on Jun 14, 2000 at 01:16 UTC | |
|
RE: Namespace woes
by Adam (Vicar) on Jun 13, 2000 at 21:06 UTC |