The stupid question is the question not asked | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
In addition to juster's Re: Overwriting a Constant, probably the closest you can get is via simulative (re)setting of constants from the command line by using Getopt::constant, you provide default values - for constants you use (these values can be scalars, lists or even coderefs) - upon 'use'ing Getopt::constant, then from the command line these constants can be made to look like having been assigned new values or used in their original definitions.
Interesting to note is that Getopt::constant does prefix such constants too and this serves to distinguish them by providing a label before the constant name, you can pass empty-string to the ':prefix' label too.
N.B: Nefarious purposes can backfire in a hairy way so 'plot' with caution... Excellence is an Endeavor of Persistence. Chance Favors a Prepared Mind. In reply to Re: Overwriting a Constant
by biohisham
|
|