$a // $b means: defined $a ? $a : $b $c //= $d; means: $c = $d unless defined $c; This is a bit different than $c ||= $d in