从文件中提取字符串 2015/12/14 16787 my %hash; while(<>) { chomp(); if( /("(.+?)")/ ) { $hash{$1} = ""; } } foreach (sort(keys %hash)) { print ; print "\n"; }