in reply to Re: Strange behavior of array in scalar context
in thread Strange behavior of array in scalar context

That indicates that the array does have one element.

my @x = (); my @y = (99); print "x count is $#x, y count is $#y\n";

results in

x count is -1, y count is 0

🦛

Replies are listed 'Best First'.
Re^3: Strange behavior of array in scalar context
by ikegami (Patriarch) on Jan 26, 2026 at 15:39 UTC