in reply to Initialize array
use the \<CODE\> tags for this.
you can initialize by
my @array; # or my @array = (); # or my @array = 0; # or ... many other ways [download]
~Particle