qw(foo bar))[$_[0]] would still yield 'foo' when @_ is empty (therefore, $_[0] is undef).