in reply to array initialization

@a = (0) x @a; # every element set to zero
An alternative to that which is probably faster for large arrays is:
$_ = 0 for @a;

-- Randal L. Schwartz, Perl hacker