>> personally, I think that FORBIDDEN() is just as bad as $FORBIDDEN - 
>> it's removing the constant idea behind constant subroutines (though 
>> sometimes you just have to do things that way to get past the compiler 
>> or whatnot). it's a matter of personal choice, I suppose...
> 
> 
> Yes, I agree. I just seem to remember that that was what is suggested in 
> the perl docs. Anyway, there is no reason to use hash notation here. 
> However, there might be for some other functions (don't ask me which).


I think that the hash notation is a carryover from other functions like 
notes() and the other Apache::Table based functions where the shortcut 
makes sense.


> 
>> oh, and C<OK == 1> is wrong - OK is 0 (which is another reason to just 
>> use constants and forget about their values ;)
> 
> 
> Thanks for spotting that one :) I still think that warning is important 
> though, as I've seen that a couple of times on the list.


yes :)

--Geoff

 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to