第一个perl程序

来源:互联网 发布:马伯庸 知乎 长安 编辑:程序博客网 时间:2024/04/29 02:17

使用Active PerL

#1st.pl

#perl是一门强大的解释性语言

#first perl code

print "=====================";
print "/nbe brave!";
print "/ninput 1st number:/n";
chomp($abc=<STDIN>);
print "input 2nd number:/n";
chomp($otherabc=<STDIN>);
print "$abc*$otherabc = ",$abc*$otherabc,"/n";

 

输出结果:


 

 

原创粉丝点击