sub plain { return } sub Undef { return undef } my @empty = plain(); my @nonempty = Undef(); die 'Different' unless @empty == @nonempty;