Perl Create Empty Array Python Example Problem