07 2013 档案

摘要:最近在写一个perl函数,把test case 放到配置文件里,读出来然后使用system运行。我的本意是: 配置文件conf ping -c $count $ip #在主程序中定义$ip和$count 从配置文件中拿出这句ping -c $count $ip 将其在system中执行,其中事先定义好$count=10 $ip="192.168.1.1"; #!/usr/bin/perl -wuse strict;my $ip="192.168.1.1";my $count=10;open(CONF,"conf") or die &q 阅读全文
posted @ 2013-07-19 21:32 to be crazy 阅读(721) 评论(0) 推荐(0) 编辑
摘要:1.there are two variables, don't use if.. else or ?: or switch or other judgement statements,find out the biggest number of the two numbers. 返回2个数中较大的数,不使用if else "?:" 或switch 语句 1 // return the biggest number without any judgement statements. 2 // create by Young 3 // date 20130707 4 阅读全文
posted @ 2013-07-07 13:49 to be crazy 阅读(427) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示