in reply to How do I initiate a constant with variable value?

I would like to create a constant but it's value is known only in runtume.

Then you want Readonly, not a constant.

  • Comment on Re: How do I initiate a constant with variable value?

Replies are listed 'Best First'.
Re^2: How do I initiate a constant with variable value?
by accessdenied (Acolyte) on Jun 04, 2010 at 13:56 UTC

    My task is optimisation so I would like to make code as simple as possible, without use of additional modules and other time-spending things.

    Thank you for info, I'll check if it fits my case.