in reply to Syntax for 1 line "either this or this"

was it something like this?
$myVar = (!defined($someValue) ? "default" : $somevalue);
  • Comment on Re: Syntax for 1 line "either this or this"