in reply to Checking the value of an undefined value

$num = defined($num) ? $num : 1;
  • Comment on Re: Checking the value of an undefined value