my $var = (condition) ? value1 : value2; [download]
In reply to Re: in search of a more elegant if then else by toolic in thread in search of a more elegant if then else by Anonymous Monk