in reply to Batch processing files in a directory

my approach?

my @files=(); opendir(DIR,"/path/to/my/dir") or die "/path/to/my/dir: $!"; while(my $fname=readdir(DIR)){ push @files,$fname if $fname =~ m@*\.ptseq$@; } closedir(DIR);

This part of your requirements are not clear to me. Process them how?


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg

Replies are listed 'Best First'.
Re^2: Batch processing files in a directory
by newbie1991 (Acolyte) on Feb 13, 2013 at 15:01 UTC
    Well, the ptseq file has description and sequence information. A1 would contain only descriptions, and A2 would have the sequence information.
          Well, the ptseq file has description and sequence information. A1 would contain only descriptions, and A2 would have the sequence information.

      Maybe I'm stupid, but that means nothing to me.


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg