atgc的博客
===========================================================
adf
===========================================================

open(F1,">test.dat");
open(F,"test.txt");
while(<F>)
{
/^(S{1})/i;
$hash_segment{$1}++;
print F1;
}
close(F);
close(F1);

open(F,"test.dat");
while(<F>)
{
/^(S{1})/i;
if ($hash_segment{$1}<=2)
{
if (!exists($hash_new{$1}))
{
$filename='valid'.$1.'.dat';
open (FO,">$filename");
}
$hash_new{$1}='';
print FO;
}
else
{
$hash_rest{$1}='';
}
}
close(F);

undef %hash_new;
undef %hash_segment;


sdfds
atgc 发表于:2007.02.24 20:16 ::分类: ( 技术文章 ) ::阅读:(122次) :: 评论 (0)

发表评论
标题

在此添加评论
表情符号: smile laughing tongue angry crying sad wassat wink

称呼

邮箱地址(可选)

个人主页(可选)




切换风格
新闻聚合
博客日历
文章归档...
最新发表...
博客统计...
网站链接...