In Perl, it\'s often nice to be able to assign an object, but specify some fall-back value if the variable being assigned from is \'undef\'. For instance:
my $x
There's python's ternary operation:
a = x if x is not None else y
Available in 2.5 and up.