F
fatted
Consider 2 statements:
my $value = 3 + @array;
my $value = 3 + scalar(@array);
They both result in $value having the same value (as far as I've seen).
Is there any difference, or to put it another way, what's the point in using scalar?
my $value = 3 + @array;
my $value = 3 + scalar(@array);
They both result in $value having the same value (as far as I've seen).
Is there any difference, or to put it another way, what's the point in using scalar?