Perl Create Empty Array Javascript Methods Types