文件名称: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/
__MACOSX/._frequency.pl
__MACOSX/
__MACOSX/._frequency.pl
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.