锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲激情av,欧美一区二区三区精品电影,亚洲精品影视在线观看http://www.aygfsteel.com/yuoveyu/category/45390.html灝忓皬紼嬪簭鍛?/description>zh-cnMon, 21 Jun 2010 02:29:11 GMTMon, 21 Jun 2010 02:29:11 GMT60perl璁頒簨鏈?/title><link>http://www.aygfsteel.com/yuoveyu/archive/2010/05/06/320202.html</link><dc:creator>浣欏潥</dc:creator><author>浣欏潥</author><pubDate>Thu, 06 May 2010 06:29:00 GMT</pubDate><guid>http://www.aygfsteel.com/yuoveyu/archive/2010/05/06/320202.html</guid><wfw:comment>http://www.aygfsteel.com/yuoveyu/comments/320202.html</wfw:comment><comments>http://www.aygfsteel.com/yuoveyu/archive/2010/05/06/320202.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/yuoveyu/comments/commentRss/320202.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/yuoveyu/services/trackbacks/320202.html</trackback:ping><description><![CDATA[<div style="margin: 6px; padding: 0px; font-family: Verdana; font-size: 10pt; color: rgb(0, 0, 0); min-height: 1100px; counter-reset: __goog_page__ 0; line-height: normal; background-color: rgb(255, 255, 255);"> <div style="margin-top: 0px; margin-bottom: 0px;">perl璁頒簨鏈?br /> <br /> 1. 'yu' x 3    #  print yuyuyu<br /> <br /> 2.print "yu jian ${age}s" # 鍔爗}  淇冧嬌鍙橀噺涓嶄細鍙樻垚$ages<br /> <br /> 3. 4 ** 2  #4鐨勫鉤鏂?br /> <br /> 4.(1..5) #  -->(1,2,3,4,5)<br /> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">5.qw ( yu jian's book)  # 綆媧侊紝鏇村皯杈撳叆</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">6.($yu,$jian)=($jian,$yu) # 鍊間簰鎹?/div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">7.($yu,$jian)=qw(yu jian) # 璧嬪?/div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">8.@array=qw/yu jian/; #鏁扮粍 </div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">9.@array=5..9;</div> <div style="margin-top: 0px; margin-bottom: 0px;">$yu=pop(@array)  # $yu=9  and @array=(5,6,7,8)</div> $yu=pop @array  # $yu=8  and @array=(5,6,7)<br /> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">10.濡傛灉鏁扮粍涓虹┖ pop涓嶄細鎶ラ敊錛屼粈涔堜篃涓嶈繑鍥烇紝鐩存帴榪斿洖undef<br /> <br /> </div> 11.push(@array,0)  # @array=(5,6,7,0)<br /> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">12.pop鍜宲ush閮芥搷浣滄暟緇勬湯灝?/div> <br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">13.shift鍜寀nshift鏄鏁扮粍鐨勫紑濮嬬鎿嶄綔</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">14.$_  perl鐨勯粯璁ゅ彉閲?/div> <div style="margin-top: 0px; margin-bottom: 0px;">for(1...10){</div> <div style="margin-top: 0px; margin-bottom: 0px;">    print $_;  # $_ = 1 or 2 or 3...</div> <div style="margin-top: 0px; margin-bottom: 0px;">}</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">15.perl浼氭紜鐞嗕笂涓嬫枃</div> <div style="margin-top: 0px; margin-bottom: 0px;">@people=qw{yu gao};</div> <div style="margin-top: 0px; margin-bottom: 0px;">@list=@people #寰楀埌鍒楄〃</div> <div style="margin-top: 0px; margin-bottom: 0px;">$n=@people #寰楀埌浜烘暟2</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">16.scalar @array #scalar 瀵艱嚧鍒囨崲涓烘爣閲忎笂涓嬫枃</div> <div style="margin-top: 0px; margin-bottom: 0px;">@array =qw/yu jian gao su/;</div> <div style="margin-top: 0px; margin-bottom: 0px;">print "love is ".@array."\n"; #love is 4</div> <div style="margin-top: 0px; margin-bottom: 0px;">print "love is ",@array,"\n"; #love is yujiangaosu</div> <div style="margin-top: 0px; margin-bottom: 0px;">print "love is ".scalar @array,"\n";#love is 4</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">17.@lines=<STDIN> #鍦ㄥ垪琛ㄤ笂涓嬫枃涓鍙栨爣鍑嗚緭鍏?/div> <br /> <br /> 18.chomp 鍘繪帀鎵鏈夌殑鎹㈣絎?chmop(@lines)<br /> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">19.璋冪敤鑷畾涔夋柟娉? &methodName;</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">20.sub max{</div> <div style="margin-top: 0px; margin-bottom: 0px;">    if(@_!=2){  #鍒ゆ柇鍙傛暟涓暟</div> <div style="margin-top: 0px; margin-bottom: 0px;">        print "waning!!!"錛?br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">        return -1;<br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">    }<br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">    my($m,$n); #鍒涘緩鏂扮殑鎵鏈夊彉閲?br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">    ($m,$n)=@_; #灝嗗弬鏁拌祴鍊肩粰鍙橀噺<br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">    if($m > $n){$m}else{$n}</div> <div style="margin-top: 0px; margin-bottom: 0px;">}<br /> <br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">21.my($num)=@_ #鑾峰彇鏁扮粍鐨勭涓涓厓绱?/div> <div style="margin-top: 0px; margin-bottom: 0px;">    my $num=@_ #鏁扮粍鐨勬暟閲?/div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">22.use strice ; #寮哄埗浣跨敤涓浜涗弗鏍肩殑鑹ソ鐨勭▼搴忚璦瑙勫垯<br /> <br /> 23.sub division{</div> <div style="margin-top: 0px; margin-bottom: 0px;">        $_[0] / $_[1]; #絎竴涓弬鏁板拰絎簩涓弬鏁?br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">}<br /> <br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">24.@ARGV=qw# file1 file2 #;# 寮哄埗璁╃爾鐭蟲搷浣滅璇誨彇榪欎袱涓枃浠?/div> <div style="margin-top: 0px; margin-bottom: 0px;">while(<>){</div> <div style="margin-top: 0px; margin-bottom: 0px;">    chomp;<br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">    print "It was $_\n":<br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">}<br /> <br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">25.printf "Hello, %s; your password in %d days!\n",$user,$days;#鏍煎紡鍖栬緭鍑?/div> <div style="margin-top: 0px; margin-bottom: 0px;">%d 鏁存暟 %g 嫻偣鏁?/div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">27.die澶勭悊閿欒杈撳嚭</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">28.璇誨彇鏂囦歡</div> <div style="margin-top: 0px; margin-bottom: 0px;">open CONFIG,"c:/test.txt";</div> <div style="margin-top: 0px; margin-bottom: 0px;">while(<CONFIG>){</div> <div style="margin-top: 0px; margin-bottom: 0px;">print $_."\n";</div> <div style="margin-top: 0px; margin-bottom: 0px;">}</div> <br /> 29. say == print  xxxx ."\n"  # say  鐩稿綋 絳変簬print 鍔犳崲琛岀<br /> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">30.hash</div> <div style="margin-top: 0px; margin-bottom: 0px;">$family_name{"fred"}="flint";</div> <div style="margin-top: 0px; margin-bottom: 0px;">$family_name{"bar"} ="rubble";</div> <br /> %family_name("fred","flint","bar","rubble");<br /> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">my %family_name=(</div> <div style="margin-top: 0px; margin-bottom: 0px;">    "fred" => "flint",<br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">    "bar" => "rubblle";<br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">)</div> <br /> my @k=keys %family_name; <div style="margin-top: 0px; margin-bottom: 0px;">my @v=values %family_name;  #return array</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">31.</div> <div style="margin-top: 0px; margin-bottom: 0px;">each鍑芥暟</div> <div style="margin-top: 0px; margin-bottom: 0px;">while( ($key,$value)=each %family_name ){</div> <div style="margin-top: 0px; margin-bottom: 0px;">        print "$key => $value\n";<br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">}</div> <div style="margin-top: 0px; margin-bottom: 0px;">exists鍑芥暟</div> <div style="margin-top: 0px; margin-bottom: 0px;">if(exists $family_name("dino")){</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">}</div> <div style="margin-top: 0px; margin-bottom: 0px;">delete鍑芥暟</div> delete $family{"fred"};<br /> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">32.\1,\2浣跨敤鍙嶅悜寮曠敤</div> <div style="margin-top: 0px; margin-bottom: 0px;">$_=""abba;</div> <div style="margin-top: 0px; margin-bottom: 0px;">if(/(.)\1/){#鍖歸厤鍒?bb</div> <div style="margin-top: 0px; margin-bottom: 0px;">    print "it matched";<br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">}</div> <br /> 33. \d = [0-9] <div style="margin-top: 0px; margin-bottom: 0px;">\w = [A-Za-z0-9_]</div> [^\d] 闈炴暟瀛? <div style="margin-top: 0px; margin-bottom: 0px;">[^\w]闈炶瘝</div> <div style="margin-top: 0px; margin-bottom: 0px;">[^\s]闈炵┖鐧藉瓧絎?/div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">34./yes/i  # /i 涓嶅尯鍒嗗ぇ灝忓啓</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">35./s 鍖歸厤浠繪剰瀛楃 錛?涓嶅寘鎷崲琛?/div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">36./x榪愯鍔犲叆絀虹櫧錛屼究浜庨槄璇葷悊瑙?/div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">37.m//妯″紡鍖歸厤鎼滅儲鍔熻兘</div> <div style="margin-top: 0px; margin-bottom: 0px;">S/// 妯″紡鍖歸厤鏇挎崲鍔熻兘</div> <div style="margin-top: 0px; margin-bottom: 0px;">/g 鍏ㄥ眬鏇挎崲</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">38.@fields = split /separator/ , $string;</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">39.my $result = join $glue,@pieces;</div> <div style="margin-top: 0px; margin-bottom: 0px;">my $x = join ":",4,5,6; # $x = "4:5:6";</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">40.*璐┆ *錛熼潪璐┆鐗堟湰</div> <br /> 41.浠庡懡浠よ榪涜鍦ㄧ嚎緙栬緫 <div style="margin-top: 0px; margin-bottom: 0px;">perl -p -w -e "s/ran/ra/g" fred.dat</div> <div style="margin-top: 0px; margin-bottom: 0px;">-p 鎵撳嵃  -n 鍘繪帀鑷姩鎵撳嵃  -w 鎵撳紑璀﹀憡閫夐」  -e 琛ㄧず鍚庨潰鏇村緱鏄唬鐮侊紝鑰屼笉鏄櫘閫氱殑鍙傛暟</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">42.last 綾諱技break </div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">43.my $stuff="Howdy world!";</div> <div style="margin-top: 0px; margin-bottom: 0px;">my $where=index($stuff,"wor"); # $where =  6<br /> <br /> </div> <div style="margin-top: 0px; margin-bottom: 0px;">44.my $mineral=substr("Fred J. Flintstone",8,5); # 鍊間負Flint</div> <br /> <div style="margin-top: 0px; margin-bottom: 0px;">45.鏅鴻兘鍖歸厤瀵瑰簲涓嶅悓寰鋒搷浣滄暟錛屼笉鍚屽痙澶勭悊鏂瑰紡<br /> %a ~~ %b         鍝堝笇鐨勯敭鏄惁涓鑷?br /> %a ~~@b          鑷沖皯%a涓殑涓涓敭鍦ㄥ垪琛ˊb涔嬩腑<br /> %a ~~ /Fred/     鑷沖皯涓涓敭鍖歸厤緇欏畾鐨勬ā寮?br /> %a ~~ 'Fred'      鍝堝笇涓煇涓鎸囧畾閿?a{'Fred'} 鏄惁瀛樺湪<br /> @a ~~ /Fred/     鏈変竴涓厓绱犲尮閰嶇粰瀹氱殑妯″紡<br /> @a ~~ 123        鑷沖皯鏈変竴涓厓绱犺漿鍖栦負鏁板瓧鍚庝簨123<br /> <br /> $name ~~ undef  $name紜疄灝氭湭瀹氫箟<br /> <br /> 46.system 鍚姩瀛愯繘紼?br /> system "date";<br /> <br /> 14.my $tarfile="some*.tar";<br /> my @dirs=qw(fred|flinet<bar&rubble> betty);<br /> system "tar"."cvf",$tarfile,@dirs;  甯﹀弬鏁扮殑緋葷粺鍛戒護璋冪敤<br /> <br /> 47.system鐨勬墍鏈夎娉曞exec閮介傜敤<br /> 鎵цexec綾諱技goto璇彞錛岃煩杞埌鍙︿釜榪涚▼榪涜鎵ц錛屽綋鍓峱erl榪涚▼浼氬叧闂?br /> chdir "/tmp" or die "cannot chdir /tmp: #!";<br /> ecec "bedrock","-o","args1",@ARGV;<br /> <br /> 48.$ENV{'PATH'}="/home/rootbeer/bin:$ENV{'PATH'}";<br /> delete $ENV{'IFS'};<br /> my $make_result= system "make";<br /> 鏀逛慨鏀瑰茍涓嶈兘褰卞搷shell鎴栬呭叾浠栫埗榪涚▼<br /> <br /> 49.my $now =`date`;<br /> print "The time is now $now";<br /> 欖斿姏鍙嶅紩鍙瘋皟鐢ㄨ繘紼?br /> <br /> 50.perl -p -i.old -e "s/try//g" test.txt 鏇挎崲鏂囦歡涓殑鍐呭,閲嶆柊鍐欏叆鏂囦歡錛?鍘熸枃浠跺浠戒負old鍚庣紑鐨勬枃浠?<br /> windows涓嬭鐢ㄥ弻寮曞彿<br /> <br /> 51.<br /> <br /> </div> </div> <img src ="http://www.aygfsteel.com/yuoveyu/aggbug/320202.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/yuoveyu/" target="_blank">浣欏潥</a> 2010-05-06 14:29 <a href="http://www.aygfsteel.com/yuoveyu/archive/2010/05/06/320202.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item></channel></rss> <footer> <div class="friendship-link"> <a href="http://www.aygfsteel.com/" title="狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频">狠狠久久亚洲欧美专区_中文字幕亚洲综合久久202_国产精品亚洲第五区在线_日本免费网站视频</a> </div> </footer> 主站蜘蛛池模板: <a href="http://" target="_blank">云林县</a>| <a href="http://" target="_blank">昌都县</a>| <a href="http://" target="_blank">翁源县</a>| <a href="http://" target="_blank">保康县</a>| <a href="http://" target="_blank">喀什市</a>| <a href="http://" target="_blank">金门县</a>| <a href="http://" target="_blank">宁陵县</a>| <a href="http://" target="_blank">巴彦县</a>| <a href="http://" target="_blank">拉萨市</a>| <a href="http://" target="_blank">岳普湖县</a>| <a href="http://" target="_blank">即墨市</a>| <a href="http://" target="_blank">古蔺县</a>| <a href="http://" target="_blank">娱乐</a>| <a href="http://" target="_blank">龙南县</a>| <a href="http://" target="_blank">定边县</a>| <a href="http://" target="_blank">岳普湖县</a>| <a href="http://" target="_blank">健康</a>| <a href="http://" target="_blank">台东县</a>| <a href="http://" target="_blank">望谟县</a>| <a href="http://" target="_blank">郁南县</a>| <a href="http://" target="_blank">高邮市</a>| <a href="http://" target="_blank">洪洞县</a>| <a href="http://" target="_blank">阿克苏市</a>| <a href="http://" target="_blank">中方县</a>| <a href="http://" target="_blank">安福县</a>| <a href="http://" target="_blank">观塘区</a>| <a href="http://" target="_blank">凤山县</a>| <a href="http://" target="_blank">东丰县</a>| <a href="http://" target="_blank">翁牛特旗</a>| <a href="http://" target="_blank">高台县</a>| <a href="http://" target="_blank">垫江县</a>| <a href="http://" target="_blank">遵化市</a>| <a href="http://" target="_blank">黎平县</a>| <a href="http://" target="_blank">壶关县</a>| <a href="http://" target="_blank">樟树市</a>| <a href="http://" target="_blank">连州市</a>| <a href="http://" target="_blank">沧源</a>| <a href="http://" target="_blank">宁波市</a>| <a href="http://" target="_blank">颍上县</a>| <a href="http://" target="_blank">新干县</a>| <a href="http://" target="_blank">祁东县</a>| <script> (function(){ var bp = document.createElement('script'); var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { bp.src = 'https://zz.bdstatic.com/linksubmit/push.js'; } else { bp.src = 'http://push.zhanzhang.baidu.com/push.js'; } var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(bp, s); })(); </script> </body>