韩半仙

  博客园  ::  :: 新随笔  ::  :: 订阅 订阅  :: 管理

2012年3月4日

摘要: 数值的比较运算符:+, -, *, /, ++, --;arithemetic.pl#!/usr/bin/perluse strict;use warnings;main(@ARGV);sub main{ my $n=42 + 12;# repeat with - * / message("The number is: " . $n); my $n =42; #$n++; #$n--; #++$n; message("The number is: " . $n++); message("The number is: " . ++$n) 阅读全文
posted @ 2012-03-04 19:18 韩英武 阅读(398) 评论(0) 推荐(0)