- $ACCUMULATOR
- $^A
-
The current value of the
write()accumulator forformat()lines. A format containsformline()calls that put their result into$^A. After calling its format,write()prints out the contents of$^Aand empties. So you never really see the contents of$^Aunless you callformline()yourself and then look at it. See perlform and "formline PICTURE,LIST" in perlfunc.format()行のための、その時点でのwrite()アキュムレータの値。 format には、$^Aに結果を残す、formline()呼び出しが含まれます。 自分のフォーマットを呼び出した後で、write()は$^Aの内容を出力してから消去します。 したがって、自分でformline()を呼び出すのでなければ、$^Aの値が見えることはありません。 perlform と "formline PICTURE,LIST" in perlfunc を参照してください。