note
merlyn
The "scalar" op is needed only to provide scalar context in an otherwise list context space. For example:
<c>
my @lengths = scalar @x, scalar @y, scalar @z;
# but...
my $length_x = @x;
my $length_y = @y;
my $length_z = @z;
</c>
The scalar is needed in the first example because the array names are in a list context otherwise.
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-9073">
<p>-- [http://www.stonehenge.com/merlyn/|Randal L. Schwartz, Perl hacker]
<br>
Be sure to read [id://205373|my standard disclaimer] if this is a reply.</p>
</div></div>
861
525156