Help for this page

Select Code to Download


  1. or download this
    for my $x ('x') { $x =~ s/x/X/ }
    
  2. or download this
    'x' =~ s/x/X/;
    
  3. or download this
    chomp;
    my @line_array = split /[()\t+\s+]/;
    
  4. or download this
    @full = map {$_ ? $_ : ()} @line_array;
    
  5. or download this
    @full = grep { $_ } @line_array;
    
  6. or download this
    @full = grep { defined $_ and length $_ } @line_array;
    
  7. or download this
    @{$data[$readcounter]} = @full;
    
  8. or download this
    push @data, \@full;
    
  9. 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
    
  10. 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