Perl Create Empty Array Python Methods Vs Functions