Skip to content

Commit

Permalink
Reveal deeper slices need @{}
Browse files Browse the repository at this point in the history
Without this additional example, users are sure to assume one must use`@days{'p'}{'x','y'}`!
  • Loading branch information
jidanni committed May 27, 2021
1 parent e5b4166 commit 56ccf6e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pod/perldata.pod
Expand Up @@ -57,9 +57,10 @@ which works much as the word "these" or "those" does in English,
in that it indicates multiple values are expected.
X<array>

@days # ($days[0], $days[1],... $days[n])
@days[3,4,5] # same as ($days[3],$days[4],$days[5])
@days{'a','c'} # same as ($days{'a'},$days{'c'})
@days # ($days[0], $days[1], ... $days[n])
@days[3,4,5] # same as ($days[3], $days[4], $days[5])
@days{'a','c'} # same as ($days{'a'}, $days{'c'})
@{$days{'p'}}{'x','y'} # same as ($days{'p'}{'x'}, $days{'p'}{'y'})

Entire hashes are denoted by '%':
X<hash>
Expand Down

0 comments on commit 56ccf6e

Please sign in to comment.