#!$radius =50;$area = 3.14*($radius**2);print $area,"\n";##############################################if ('leon' =~ /\bleon\b/) {print ("I am leon!\n");}else {print ("who am i?\n");}##############################################$a = 'hello world ';$b = "fuck u";print $a+$b,"\n";print $a.$b,"\n";##############################################$name = "leon";$astring = 'my name is $name';$bstring = "my name is $name";$cstring = "my name is $name";print $astring,"\n";print $bstring,"\n";print $cstring,"\n";##############################################$mstring = "fuck " x 10;print $mstring,"\n";print $Ustring = uc(leon),"\n";print lc($Ustring),"\n"; print rand(),"\n"; $instring = "zzz";$instring++;print $instring,"\n"; $instring--; #what???print $instring,"\n";总结
以上是内存溢出为你收集整理的perl基础-2 (Perl编程24学时教程)全部内容,希望文章能够帮你解决perl基础-2 (Perl编程24学时教程)所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)