Object-InsideOut - Re: OIO and default value

Posted on Tue Dec 12 23:07:18 2006 by jdhedden in response to 3745 (See the whole thread of 13)
Re: OIO and default value
No. You cannot set a default value that needs to be eval'ed at the time of assignment. This is because you could specify a code ref as a default value, and eval'ing it would cause the code ref to be executed which would not give the same result.

See 'Parameter Preprocessing' in the POD which can used for 'Providing a dynamically-determined default value'.
Direct Responses: 3752 | Write a response