広告
EXPR を強制的にスカラコンテキストで解釈されるようにし、EXPR の値を返します。
@list = (1, 2, 3, 4, 5); print scalar @list;
5
https://www.7key.jp/program/perl/scalar.html