-
Notifications
You must be signed in to change notification settings - Fork 577
[doc] perldata hash slice example will blow up if used for more than depth 1 #17721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@jdanni, I'm trying to fix this, but I'm not good with slices. I don't understand what you mean
I'm happy to add your first example about needing to enclose |
Thanks but we will need a third person who is good with slices that go deeper than just one level to step in and interpret what I meant back in 2020 when I was slightly better with slices myself. |
|
The request is that, when you are trying to slice an array or hash that is within another array or hash, you need to use the brace syntax (or postfix dereference syntax) to dereference |
Or put another way, the hash you are trying to slice is |
perldata says
OK, but it needs to mention more than just one depth,
Else users will extend the analogy presented, and assume
will work !
Also mention there is no way to use a consistent syntax for first vs.
more layers.
The text was updated successfully, but these errors were encountered: