Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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.
In reply to Re: Ternary operators: a hinderance, not a help
by NateTut
|
|