2-1 绱旈?锛氭暩??

Perl や穿戈篈菠だ碭摸 秖琌 Perl 程虏虫戈篈┮Τ秖跑计常琌$秨﹍ㄇ璣ゅダㄒ $a$x┪ $test秖跑计ㄆ龟Τㄢ摸计㎝﹃セ竊盢弧㎝计跑计砞﹚㎝ノ猭の闽ㄧ计Τ闽﹃跑计弧叫ǎ竊

 Perl ず场纗よΑτē┮Τ计А纗Θ double Α琌碭㎝计闽痹瓃

$x = 2.5; # 夹非计砞﹚ $x = 4.5e-12; # 钡厩癘腹ボ猭 $x = 0377; # 0秨繷琌 8 秈ボ猭 0377 秈 255 $y = 0xfe; # 0x秨繷琌 16 秈ボ猭 0xfe 秈 254 $z = $x - $y; # $z = 1 $z = $x*$y; # $z = 64770 $z /= 255; # $z = $z/255 = 254 $z--; # $z = 253; ㄤ挡狦㎝ --$z  $u = $z++; # $u = 253, $z = 254 $p = $z**2; # $p = $z*$z  Perl 计笲衡筁祘い笲衡ΑセōΤ穦单砆砞﹚跑计и糶砞﹚痹瓃 $a = ($b = 4); # $b = 4, $a = 4 $a = $b = 4 # 笲衡Α挡狦Α $z = 3 + ($y = $a+5); # $y = 9, $z = 12; 计闽笲衡のㄧ计羭

笲衡ㄧ计
笲衡才腹弧ㄧ计嘿弧
+abs荡癸
-atan2はタちㄧ计
*cos緇┒ㄧ计
/exp计ㄧ计
**计笲衡hex锣Θ16秈
++笲衡int俱计笲衡
--搭笲衡log癸计ㄧ计
  oct锣Θ8秈
  rand玻ネ睹计
  sinタ┒ㄧ计
  sqrt秨キよ
  srand砞﹚睹计贺Random Seed


Perl