my @array = (); open my $fh, "file.ext" or die $!; LINE: while ( <$fh> ) { chomp; $_ and next LINE; if ( /\S+\s*\:\s*(\d+)/ ) { push @array, $1; } else { die "unexpected data format at line $.:\n$_\n"; } } close $fh;
One world, one people
In reply to Re: Last Character into Array
by anonymized user 468275
in thread Last Character into Array
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |