summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>1999-10-03 09:54:23 -0400
committerJarkko Hietaniemi <jhi@iki.fi>1999-10-03 17:50:59 +0000
commit88e9b055d1d2b36d019a3b541f111de4d9b71e3e (patch)
treebb12c08e6d07189374337e1c6ed163a2c8871ef9
parentab612ae322acd4d9f3012a98d8fef7a541ccdeca (diff)
downloadperl-88e9b055d1d2b36d019a3b541f111de4d9b71e3e.tar.gz
A better version of #4296.
To: perl5-porters@perl.org Subject: [PATCH av.c, op.c, perldiag.pod] "array field" -> "pseudo-hash field" Message-ID: <19991003135423.A3050@blackrider> p4raw-id: //depot/cfgperl@4297
-rw-r--r--av.c2
-rw-r--r--op.c2
-rw-r--r--pod/perldiag.pod6
3 files changed, 5 insertions, 5 deletions
diff --git a/av.c b/av.c
index 6301043ac7..8f3b4f8bda 100644
--- a/av.c
+++ b/av.c
@@ -634,7 +634,7 @@ Perl_avhv_fetch_ent(pTHX_ AV *av, SV *keysv, I32 lval, U32 hash)
he = hv_fetch_ent(keys, keysv, FALSE, hash);
if (!he)
- Perl_croak(aTHX_ "No such pseudo-hash field '%s'", SvPV(keysv,n_a));
+ Perl_croak(aTHX_ "No such pseudo-hash field \"%s\"", SvPV(keysv,n_a));
return av_fetch(av, avhv_index_sv(HeVAL(he)), lval);
}
diff --git a/op.c b/op.c
index 40f4e36d37..c0abbf82cd 100644
--- a/op.c
+++ b/op.c
@@ -6141,7 +6141,7 @@ Perl_peep(pTHX_ register OP *o)
key = SvPV(*svp, keylen);
indsvp = hv_fetch(GvHV(*fields), key, keylen, FALSE);
if (!indsvp) {
- Perl_croak(aTHX_ "No such field \"%s\" in variable %s of type %s",
+ Perl_croak(aTHX_ "No such pseudo-hash field \"%s\" in variable %s of type %s",
key, SvPV(lexname, n_a), HvNAME(SvSTASH(lexname)));
}
ind = SvIV(*indsvp);
diff --git a/pod/perldiag.pod b/pod/perldiag.pod
index caf88861a0..b35d260eb2 100644
--- a/pod/perldiag.pod
+++ b/pod/perldiag.pod
@@ -1967,13 +1967,13 @@ your system.
(F) The argument to B<-I> must follow the B<-I> immediately with no
intervening space.
-=item No such pseudo-hash field '%s'
+=item No such pseudo-hash field "%s"
-(F) You tried to access a pseudo-hash, but the field name used is
+(F) You tried to access an array as a hash, but the field name used is
not defined. The hash at index 0 should map all valid field names to
array indices for that to work.
-=item No such field "%s" in variable %s of type %s
+=item No such pseudo-hash field "%s" in variable %s of type %s
(F) You tried to access a field of a typed variable where the type
does not know about the field name. The field names are looked up in