Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 / »ù´¡±à³Ì

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½²ÁË£¨Ò»ÌìÒ²Ö»¿´Ò»½²£©
ÎÒ»á¼á³Ö°ÑÕâ±¾ÊéºÍÊÓÆµ¸ã¶¨ ......

Çó½ÌPHPÖÐstr_replaceº¯ÊýÎÊÌâ - PHP / »ù´¡±à³Ì

ÇëÎÊ£¬ÒÔÏ´úÂ룬Ϊʲô²»¹ÜÓ㿾Ístr_replaceÕâ¸öº¯Êý£¬Ì滻ôÓÐÆð×÷Óã¿
PHP code:
$gg='<script type=\"text/JavaScript\">
alimama_pid=\"mm_14281022_2030060_8250750\";
alima ......

ÈçºÎÔÚphpÍøÕ¾ÖÐÌí¼Ó±³¾°ÒôÀÖ - PHP / »ù´¡±à³Ì

ÎÒÔÚÍøÕ¾µÄÒýµ¼Ò³ÖÐÌí¼ÓÁË<embed src="ÒôÀÖµØÖ·" autostart="true" loop="true" hidden="true"></embed>
Õâ¾ä»°£¬È»ºóÌø×ªÒ³Ãæºó£¬±³¾°ÒôÀÖ¾ÍûÓÐÁË£¬ÔõôÈÃÕ ......

Çó´óÐ͵ÄÓ¢ÎÄphpÂÛ̳ - PHP / »ù´¡±à³Ì

ÇóÒ»¸ö´óÐ͵ÄÓ¢Îļ¼ÊõÂÛ̳£¬¿ÉÒÔÊÇ×ÛºÏÐÔÂÛ̳Ҳ¿ÉÒÔÊÇPHPרÃŵÄÂÛ̳¡£¿ÉÒÔ¼¼ÊõÌáÎÊ£¬¿ÉÒԷǼ¼Êõ½»Á÷µÄ¡£ 
´ó¼Ò¶à¶àÍÆ¼ö¡£
ллÀ²¡£

csdn.com

ÒýÓÃ
csdn.com
ÎÒ˵µÄÊÇÓ¢Îĵġ£ ¿´ÇåÌâÄ¿°¡¡£

phpcl ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ