I've asked a related question elsewhere but I still would like to know why I do not see the value of an array @x
:
Asked
Active
Viewed 75 times
-2

user2925716
- 949
- 1
- 6
- 13
-
2There seems to be a chevron or `>` symbol left to `@x`, which probably indicates that you can unfold a tree view and inspect the contents. – amon Jun 04 '21 at 20:29
-
2This is basically a screenshot with an insufficient description of your problem. I don't really know what you mean with "I do not see the value of an array @x". I can only guess is that you are confused that you `$y` is 5, i.e. the length of the array and not some of the 5 elements of it (which one did you expect?). This is expected. If you want to have the first element use `($y) = @x` instead. – Steffen Ullrich Jun 04 '21 at 20:29
-
You don't see a value for the array because arrays don't have a value. They have elements. You can view these by clicking on `>`. It would be nice if it displayed the number of elements in the array, though. – ikegami Jun 04 '21 at 21:28
1 Answers
2
Tested on Windows 10, you just need to click the >
sign in front of the @x
array to expand the view and show its elements (as noted in the comments by @amon):

Håkon Hægland
- 39,012
- 21
- 81
- 174
-
@user2925716 I think perhaps because your question shows a screenshot of the output you got, but doesn't explain what output you were expecting. Having a good answer doesn't make something a good question. If you edit the question to improve more information about what you were expecting, I think you'll probably find the question will not be closed. – tobyink Jun 05 '21 at 11:23
-
@tobyink I've explained that I was expecting to see the **value** of my ARRAY `@x`. – user2925716 Jun 05 '21 at 15:55