Edward Wijaya <[EMAIL PROTECTED]> wrote: : How can I modify the early part of code below such that : I don't have to manually key in the files this way: : : perl mycode.pl data1P.fa data1R.fa data2P.fa data2R.fa : ....etc : : [snip] : : NOTE: : The code above take pair-series of files as follows: : : data1R.fa - data1P.fa : data2R.fa - data2P.fa : : From list of files in directory : : data1R.fa : data2P.fa : data2R.fa : data2P.fa : .... #and there are more than 40 of these type files
Is it always data1, data2, data3, etc. or can data be another word? (Like foo1, foo2, foo3, etc.) Is the extension always .fa or can it be something else? Will every R file have a matching P file or will some extra files be located in the directory? For example, will there sometimes be a data14R.fa file and no corresponding data14P.fa file? Will there be other files located in this directory? Charles K. Clarkson -- Mobile Homes Specialist 254 968-8328 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>