Perl Array Data Structure

A Perl Array Data Structure is a Perl Data Structure that represents an Array Data Structure.



References


Examples

   my @Array1 = ( 1, 2, 3);
   my @Array2 = ("One", "Two", "Three");
   my @Array3 = qw(One Two Three);
   while (<>) {
      my @tmp = split;        # Split elements into an array.
      ...
   }
   for $i (@array) {
     print $i ;
   }
  @ARRAY = (); # completely empty @ARRAY
  $#ARRAY = -1 ; # reset the index
  undef @ARRAY; # forget @ARRAY ever existed