This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Add Perl equivalent for av_exists().
authorShlomi Fish <shlomif@iglu.org.il>
Tue, 18 May 2010 12:31:41 +0000 (15:31 +0300)
committerDavid Golden <dagolden@cpan.org>
Tue, 25 May 2010 16:15:01 +0000 (12:15 -0400)
This mentions that it's equivalent to exists($myarray[$key]).

Signed-off-by: David Golden <dagolden@cpan.org>
av.c

diff --git a/av.c b/av.c
index f915fef..33d5d7b 100644 (file)
--- a/av.c
+++ b/av.c
@@ -885,6 +885,8 @@ Returns true if the element indexed by C<key> has been initialized.
 This relies on the fact that uninitialized array elements are set to
 C<&PL_sv_undef>.
 
 This relies on the fact that uninitialized array elements are set to
 C<&PL_sv_undef>.
 
+Perl equivalent: C<exists($myarray[$key])>.
+
 =cut
 */
 bool
 =cut
 */
 bool