Help for this page

Select Code to Download


  1. or download this
    my @array = qw/a b c d e/;
    print scalar @array, "\n";
    __OUTPUT__
    5
    
  2. or download this
    my @aoa = ( [a, b, c], [d, e, f] );
    
  3. or download this
    my @array = @{$aoa[0]};
    print scalar @array, "\n";
    __OUTPUT__
    3