Re: how to set constants from command line?

2013-12-15 Thread Parrot Raiser
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?

Re: how to set constants from command line?

2013-12-15 Thread Larry Wall
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

how to set constants from command line?

2013-12-14 Thread Richard Hainsworth
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

Re: how to set constants from command line?

2013-12-14 Thread Moritz Lenz
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