- or download this
for my $x ('x') { $x =~ s/x/X/ }
- or download this
'x' =~ s/x/X/;
- or download this
chomp;
my @line_array = split /[()\t+\s+]/;
- or download this
@full = map {$_ ? $_ : ()} @line_array;
- or download this
@full = grep { $_ } @line_array;
- or download this
@full = grep { defined $_ and length $_ } @line_array;
- or download this
@{$data[$readcounter]} = @full;
- or download this
push @data, \@full;
- or download this
use strict;
use Data::Dumper;
...
00000(IDR) 86480 22 41.435 40.696 40.728167 0 FRM 3
00015( B ) 9312 24 45.460 43.808 42.001 409 208 FRM 0
00002( P ) 35248 24 38.568 39.327 40.641 253 53 FRM 2
- or download this
use strict;
use Data::Dumper;
...
00000(IDR) 86480 22 41.435 40.696 40.728167 0 FRM 3
00015( B ) 9312 24 45.460 43.808 42.001 409 208 FRM 0
00002( P ) 35248 24 38.568 39.327 40.641 253 53 FRM 2