- or download this
001 use strict;
002 my @array;
...
006 push @array, [m/(\d+)/, $_];
007 }
008 close INFILE;
- or download this
$_ =~ m/(\d+)/; #set $1 to the first group of digits
push @array, [$1, $_];
- or download this
$_ =~ m/(\d+)/;
my @subarray = ($1, $_);
push @array, [@subarray];
- or download this
$_ =~ m/(\d+)/;
my @subarray = ($1, $_);
push @array, \@subarray;