in reply to change 'use constant' value through commandline arguments?
Otherwise, you'll have to wrap your @ARGV processing in a BEGIN {} block so it will run at compile time. That's when (and how) use statements run.use constant DEBUGGING => $ENV{DEBUGGING} || 0;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: change 'use constant' value through commandline arguments?
by merlyn (Sage) on Mar 14, 2002 at 20:16 UTC | |
by chromatic (Archbishop) on Mar 14, 2002 at 20:37 UTC | |
|
Re: Re: change 'use constant' value through commandline arguments?
by neuroball (Pilgrim) on Mar 14, 2002 at 16:42 UTC |