1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
| use FindBin qw($Bin);
my $fileReportDir = $Bin; if(-e $fileReportDir){ opendir DIR, $fileReportDir || die "Error in opening dir $fileReportDir\n"; while( my $file = readdir(DIR)){ next if $file eq "."; next if $file eq ".."; my $fileAll = $fileReportDir."/".$file; if(!unlink($fileAll)){ print "=====程序终止!=====\n删除表格(".$fileAll.")失败,请手动删除\n";
system pause;
die; } } closedir DIR; }
open FILE, "<$file" || die "Not Found file: $file\n"; while (<FILE>){ my ($gene,$chr) = (split /\t/,$_)[0,1]; } close FILE;
|