$foo = shift || 1; # is the same as $foo = (shift || 1); #### $foo = shift or 1; # is the same as ($foo = shift) or 1;