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.
In reply to Re(3): how to avoid mis-spelling hash keys?
by BrentDax
in thread how to avoid mis-spelling hash keys?
by Gorilla
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |