Subject: | Can't set hide_email to false |
Hi Tim,
Your stash() sub is broken. You can't set any item as "0" because you're checking for true/false rather than defined()-ness.
sub stash {
$_[0]->{$_[1]} = $_[2] if $_[2];
$_[0]->{$_[1]};
}
should be:
sub stash {
$_[0]->{$_[1]} = $_[2] if defined $_[2];
$_[0]->{$_[1]};
}
this will allow the user to do:
$tk->hide_email( 0 );
Cheers,
-Brian