It's not really a constant he wants, but a value that's read-only to
everything but the setting routine. Some sort of object, perhaps?
On Sun, Dec 15, 2013 at 11:28:02AM -0500, Parrot Raiser wrote:
: It's not really a constant he wants, but a value that's read-only to
: everything but the setting routine. Some sort of object, perhaps?
Any parameter to sub MAIN is readonly by default, since parameters
in general are readonly by
I would like to set a series of magic numbers from the command line.
I have in a program
constant N-SCENARIOS = 10;
which works great. But I would like to set an option in the command
line, such as
perl6 program.p6 scenarios=15
and then within program have the option assigned to the
Hi Richard,
On 12/12/2013 08:56 AM, Richard Hainsworth wrote:
I would like to set a series of magic numbers from the command line.
I have in a program
constant N-SCENARIOS = 10;
which works great. But I would like to set an option in the command
line, such as
perl6 program.p6 scenarios=15