A. Pagaltzis wrote: > > Offtopic rant: why do people want/use OO for things like these??? > Why not simply have a Foo::mkconst() ?
response rant: why do people always assume that they know better what is being attempted than the person writing the code? there's a reason i'm using o-o; let's accept that and leave it at that. > The problem is that perl doesn't know DOH is a function call > unless it has seen a function with that name. So you have to > declare the constant name, if not the constant value, at compile > time. There's no way around this, period. thank you. -- #ken P-)} Ken Coar, Sanagendamgagwedweinini http://Ken.Coar.Org/ Author, developer, opinionist http://Apache-Server.Com/ "Millennium hand and shrimp!"