in reply to Substitute "Yes" for "1" in mysql query output?

 my $preauth eq '0'

Time to review perlintro for example of how to use my