in reply to array code interpretation
and to test a particular size, you can useif (@array) {
which can be shortened toif ($size == scalar @array) {
because the scalar context is imposed by the comparison operator.if ($size == @array) {
<FILE> is equivalent to readline FILE, see readline. The LINE: at the beginning of a line is a label, it names the loop. last LINE exits the loop, while next LINE runs the next iteration of the loop. See next and last.
|
|---|