作者: Bruce.
日時: 2006/3/24(02:37)
Bruce.です。

D:\work>perl -e "$s=2; print (($s+=1)**($s-=1))"
4
D:\work>ruby -e "$s=2; print (($s+=1)**($s-=1))"
9
D:\work>perl -e "$s=2; print (($r = $s+=1)**($t = $s-=1)); print $r, $t"
932
D:\work>ruby -e "$s=2; print (($r = $s+=1)**($t = $s-=1)); print $r, $t"
932
D:\work>

むう、Perlってmagicalなことをやってるっぽい。

ぷいにゅ。

-- 
木村浩一
  I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
  mail kbk at kt.rim.or.jp
	web  www.kt.rim.or.jp/~kbk/index.html#zakkicho
	     homepage3.nifty.com/farstar/

-- 
木村浩一
  I thought what I'd do was, I'd pretend I was one of those deaf-mutes.
  mail kbk@...
	web  www.kt.rim.or.jp/~kbk/index.html#zakkicho
	     homepage3.nifty.com/farstar/