文件名称:frequency.pl
介绍说明--下载内容均来自于网络,请自行研究使用
Write a Perl scr ipt frequency.pl which prints the frequency with each poet uses a word specified as argument. So if Robert Frost uses the word snow 30 times in the 21699 words of his poetry you are given, then its frequency is 30/21699 = 0.001382552-Make sure your Perl scr ipt produces exactly the output above (the printf format is 4d/ 6d = .9f s\n ). Note you should ignore case (change A-Z to a-z). You should treat as a word any sequence of alphabetic characters. You should treat non-alphabetic characters (characters other than a-z) as spaces.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
frequency.pl
__MACOSX
........\._frequency.pl