[Petal] compiled expression (again)

William McKee william at knowmad.com
Wed Jun 18 11:35:43 BST 2003


On Wed, Jun 18, 2003 at 03:34:12PM +0100, Fergal Daly wrote:
> A better solution may be to do something like turn off some warnings in your 
> template. Something like

I'm not sure this is a better solution since it means that I'd need to
add it to all of my templates. Since this problem of empty hash keys is
a coding issue (meaning I can avoid the warnings by setting the value to
a non-null), it seems best to keep the solution in the code.


> If you want the warnings just do
> 
> $Petal::WARN_UNINIT = 1;

I like this kind of solution. It seems like it could be made to work
with the constructor which makes the most sense to me.


Cheers!
William

-- 
Knowmad Services Inc.
http://www.knowmad.com


More information about the Petal mailing list