in reply to Syntax for 1 line "either this or this"
$myVar = !defined($somevalue) ? "default" : $somevalue; [download]