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
🦛
In reply to Re^2: Strange behavior of array in scalar context
by hippo
in thread Strange behavior of array in scalar context
by xavier8854
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |