Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
     my @files = map{$_->[0]}
    
  2. or download this
     my @files = map{$_->[0]}
     sort{
    ...
          $a->[3] <=> $b->[3]  
        }
     map{[$_,/.+?_A\.(.+?)-(.+?)-(\d+)\..+$/]}<DATA>;
    
  3. or download this
    print $_,$/ for @files;
    
    ...
    abcd1_abc_123456.abc1a_A.201307282200-2300-10.gz
    abcd1_abc_123456.abc1a_A.201307282200-2300-11.gz
    abcd1_abc_123456.abc1a_A.201307282200-2300-12.gz
    
  4. or download this
    foreach (@files) {
    my $file = $_;