in reply to What's wrong with my code? [from a beginner]
if ($entry[1] == "r") # true if $entry[1] is '0', or 'r', or 'z'! if ( $entry[1] eq "r" ) # true if $entry[1] is "r" [download]