diff options
author | David Cantrell <david@cantrell.org.uk> | 2020-11-30 22:50:00 +0000 |
---|---|---|
committer | Karl Williamson <khw@cpan.org> | 2020-12-02 19:40:29 -0700 |
commit | 326fbc152f1a1e306a9c8b64763efca42f89d0bf (patch) | |
tree | a4c396df5fc8e4853a6d45fcf7312ed19c2671ab /pod/perltie.pod | |
parent | 8b40c6980a4ae3fa364f4921879001f097000652 (diff) | |
download | perl-326fbc152f1a1e306a9c8b64763efca42f89d0bf.tar.gz |
add note on how to write NEXTKEY when you can't just wrap around each()
Diffstat (limited to 'pod/perltie.pod')
-rw-r--r-- | pod/perltie.pod | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pod/perltie.pod b/pod/perltie.pod index 6f870597c6..cea7a6fe6e 100644 --- a/pod/perltie.pod +++ b/pod/perltie.pod @@ -811,6 +811,11 @@ thing, but we'll have to go through the LIST field indirectly. return each $self->{LIST}->%* } +If the object underlying your tied hash isn't a real hash and you don't have +C<each> available, then you should return C<undef> or the empty list once you've +reached the end of your list of keys. See L<C<each's own documentation>|perlfunc/each> +for more details. + =item SCALAR this X<SCALAR> |