my $var2 = (cond 1) ? 'a' : 'y'; [download]
In reply to Re: Variable Declaration by Roy Johnson in thread Variable Declaration by pp