易截截图软件、单文件、免安装、纯绿色、仅160KB

一个应聘的试题 PHP 谁给解答一下 急用

=head1 *NAME*

perltst5.prl -- language analyzer (perl test 5)

=head1 *DESCRIPTION*

This program analyzes an arbitrary sample of any language written in
latin characters (a-z).

=head1 *TASK*

The program should output the following information:

1. Frequency distribution of the vowels and consonants used in the sample.

2. A list of the different consonant-vowel patterns
  used in the sample:
  A consonant-vowel pattern ("c-w pattern") should have
  an 'a' for each vowel, and a 'c' for each consonant;
  e.g. the c-w pattern word 'mopufom' would be 'cacacac',
  and the c-w pattern for 'oleq' would be 'acac'.

3. The most frequent consonant-vowel pattern in the sample.


=head1 *QUESTION*

The sample below consists of two *different* language samples,
pasted one after another.

At which point does the second one probably start?


=cut

# Note: qw( ) "quotes words": creates an array with the space-separated items

@vowels = qw( a e i o u y );
@cons  = qw( b c d f g h j k l m n p q r s t v w x z );

$/ = undef;
$_ = <DATA>; # All the text is in $_ now.

# write


相关问答:

付费求一段php代码,支持淘宝交易

各位大些
求一段php代码
可以实现以下功能
针对不同的浏览器显示不同的图片

就是有一张图片,只想给ie6用户看到
如果ie7、chrome、firefox用户浏览则显示另外一张图片

价格不要太离谱就行 ......

求达人将一段PHP转化为ASP,谢谢! - Web 开发 / ASP

代码如下:
function uc_get_user($username, $isuid=0) {
$return = call_user_func(UC_API_FUNC, 'user', 'get_user', array('username'=>$username, 'isuid'=>$isuid));
return UC_CONNECT == 'mysql' ......

php时间正则问题 - PHP / 基础编程

PHP code:

$date = '2009-12-25';
$ptn = '/([\d]{4})[- \/](0?[\d]|1[0-2])[-\/ ](0?[\d]|[1-2][\d]|3[0-1])/';
if (preg_match($ptn,$date,$out))
{
print_r($out);exit();
}
结果为:
PHP code:
......

武汉哪里PHP培训比较正规 - PHP / 基础编程

过完年要去武汉了,想了解一下PHP培训比较正规?

哦 对了,还有!PHP手册必须得弄一个

嗯 天天在看圣经(一天也就只能看个二十页),PHP100视频教程看了33讲了(一天也只看一讲)
我会坚持把这本书和视频搞定 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号