从文件中提取字符串

my %hash;
while(<>)
{
    chomp();
    if( /("(.+?)")/ )
    {
        $hash{$1} = "";
    }
}

foreach (sort(keys %hash))
{
    print ;
    print "\n";
}

编程技巧