I use them a lot when I build SQL:my $Show_Statement = "Show " . ($row->{'TableKind'} eq 'T' ? 'Table' : 'View') . $row->{'DatabaseName'} . '.' . $row->{'TableName'}; I find that method more readable than using an if statement.
Comment on Re: Ternary operators: a hinderance, not a help