Help for this page

Select Code to Download


  1. or download this
    my $text = "0 X X X ...";
    my @items = split(' ', $text);
    ...
      push(@array, [ splice(@items, 0, 8) ]);
    }
    pp \@array; use Data::Dumper;
    
  2. or download this
    die "incomplete last row\n"
       unless (scalar(@{$array[-1]} == 8);