Mega Code Archive

 
Categories / Perl / Array
 

Filling an array with 100 zeroes by using the x operator

@array = (0) x 100; print @array;