Mega Code Archive

 
Categories / Perl / Array
 

Using a minus variable as the array index

@a1 = (1, 2, 3); print @a1[-2];