看板
[ Perl ]
討論串[問題] 點點(..)運算子兩問
共 6 篇文章
內容預覽:
對一個array我們可以用@arr[1..2]這樣的方式取到subarray. 但對一個array ref 用箭頭$arr_ptr->[1..2]這樣會只取到其中一個值. 看不太出規律 而又不會error. 有人知道是為什麼嗎. 另外一個問題. 有人知道4個點的用途嗎. perl -e 'print
(還有164個字)
內容預覽:
.. 和 ... 用在 scalar 時像是「正反器」, 用起來也像是正反器,. 對我這不是電子電路出身的人來說, 初看時還真不知道能怎麼用.. :Q. 它的說明非常地.. 像零件.... 「起初, 如果左邊是 false, 則它是 false;. 如果一旦左邊變成 true 了, 則它會先變成 t
(還有764個字)
內容預覽:
man perlop. The right operand is not evaluated while the operator is in the. "false" state, and the left operand is not evaluated while the. operator
(還有781個字)