An error message need not be a novel.
authorJarkko Hietaniemi <jhi@iki.fi>
Mon, 22 Sep 2003 18:16:40 +0000 (18:16 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Mon, 22 Sep 2003 18:16:40 +0000 (18:16 +0000)
p4raw-id: //depot/perl@21319

pod/perldiag.pod
pp_hot.c

index 37878ff..e445d08 100644 (file)
@@ -4191,9 +4191,10 @@ modifier is not presently meaningful in substitutions.
 use the /g modifier.  Currently, /c is meaningful only when /g is
 used.  (This may change in the future.)
 
-=item Use of freed value in iteration (perhaps you modified the iterated array within the loop?)
+=item Use of freed value in iteration
 
-(F) This is typically caused by code like the following:
+(F) Perhaps you modified the iterated array within the loop?
+This error is typically caused by code like the following:
 
     @a = (3,4);
     @a = () for (1,2,@a);
index 70d4e6d..7cbc00b 100644 (file)
--- a/pp_hot.c
+++ b/pp_hot.c
@@ -1872,8 +1872,7 @@ PP(pp_iter)
     }
     if (sv && SvREFCNT(sv) == 0) {
        *itersvp = Nullsv;
-       Perl_croak(aTHX_
-           "Use of freed value in iteration (perhaps you modified the iterated array within the loop?)");
+       Perl_croak(aTHX_ "Use of freed value in iteration");
     }
 
     if (sv)