This will work:
perl -e '$x="\nYo "; $x ? $x.="hello" : $x.="Bye";print $x;' [download]
In reply to Re: ?: (conditional operator) by busunsl in thread ?: (conditional operator) by pmc2