in reply to Re: Re: how to avoid mis-spelling hash keys?
in thread how to avoid mis-spelling hash keys?
if( $self->{$attribute} ){That will fail if $self->{$attribute} is set to zero, the empty string, or undef. Perhaps this would work better:
if(exists $self->{$attribute}) {
=cut
--Brent Dax
There is no sig.
|
---|