5 The main enhancement to the Perl core was the addition of prototypes.
6 Many of the modules that come with Perl have been extensively upgraded.
8 Other than that, nearly all the changes for 5.002 were bug fixes of one
9 variety or another, so here's the bug list, along with the "resolution"
10 for each of them. If you wish to correspond about any of them, please
11 include the bug number (if any).
13 Added APPLLIB_EXP for embedded perl library support.
16 Couldn't define autoloaded routine by assignment to typeglob.
17 Files patched: pp_hot.c sv.c
19 NETaa13525: Tiny patch to fix installman -n
21 Files patched: installman
23 NETaa13525: de-documented \v
24 Files patched: pod/perlop.pod pod/perlre.pod
26 NETaa13525: doc changes
27 Files patched: pod/perlop.pod pod/perltrap.pod
29 NETaa13525: perlxs update from Dean Roehrich
30 Files patched: pod/perlxs.pod
32 NETaa13525: rename powerunix to powerux
33 Files patched: MANIFEST hints/powerux.sh
35 NETaa13540: VMS uses CLK_TCK for HZ
36 Files patched: pp_sys.c
38 NETaa13721: pad_findlex core dumps on bad CvOUTSIDE()
40 Files patched: op.c sv.c toke.c
41 Each CV has a reference to the CV containing it lexically. Unfortunately,
42 it didn't reference-count this reference, so when the outer CV was freed,
43 we ended up with a pointer to memory that got reused later as some other kind
46 NETaa13721: warning suppression
50 NETaa13722: walk.c had inconsistent static declarations
52 Files patched: x2p/walk.c
53 Consolidated the various declarations and made them consistent with
54 the actual definitions.
56 NETaa13724: -MPackage=args patch
58 Files patched: perl.c pod/perlrun.pod
59 Added in the -MPackage=args patch too.
61 NETaa13729: order-of-evaluation dependency in scope.c on leaving REGCONTEXT
63 Files patched: scope.c
67 savestack_ix -= delta; /* regexp must have croaked */
71 NETaa13731: couldn't assign external lexical array to itself
72 From: oneill@cs.sfu.ca
74 The pad_findmy routine was only checking previous statements for previous
75 mention of external lexicals, so the fact that the current statement
76 already mentioned @list was not noted. It therefore allocated another
77 reference to the outside lexical, and this didn't compare equal when
78 the assigment parsing code was trying to determine whether there was a
79 common variable on either side of the equals. Since it didn't see the
80 same variable, it thought it could avoid making copies of the values on
81 the stack during list assignment. Unfortunately, before using those
82 values, the list assignment has to zero out the target array, which
85 The fix was to make pad_findmy search the current statement as well. This
86 was actually a holdover from some old code that was trying to delay
87 introduction of "my" variables until the next statement. This is now
88 done with a different mechanism, so the fix should not adversely affect
91 NETaa13733: s/// doesn't free old string when using copy mode
93 Files patched: pp_ctl.c pp_hot.c
94 When I removed the use of sv_replace(), I simply forgot to free the old char*.
96 NETaa13736: closures leaked memory
98 Files patched: op.c pp.c
99 This is a specific example of a more general bug, fixed as NETaa13760, having
100 to do with reference counts on comppads.
102 NETaa13739: XSUB interface caches gimme in case XSUB clobbers it
104 Files patched: pp_hot.c
105 Applied suggest patch. Also deleted second gimme declaration as redundant.
107 NETaa13760: comppad reference counts were inconsistent
109 Files patched: op.c perl.c pp_ctl.c toke.c
110 All official references to comppads are supposed to be through compcv now,
111 but the transformation was not complete, resulting in memory leakage.
113 NETaa13761: sv_2pv() wrongly preferred IV to NV when SV was readonly
114 From: "Jack R. Lawler"
116 Okay, I understand how this one happened. This is a case where a
117 beneficial fix uncovered a bug elsewhere. I changed the constant
118 folder to prefer integer results over double if the numbers are the
119 same. In this case, they aren't, but it leaves the integer value there
120 anyway because the storage is already allocated for it, and it *might*
121 be used in an integer context. And since it's producing a constant, it
122 sets READONLY. Unfortunately, sv_2pv() bogusly preferred the integer
123 value to the double when READONLY was set. This never showed up if you
126 print 1.4142135623731;
128 because in that case, there was already a string value.
131 NETaa13772: shmwrite core dumps consistently
133 Files patched: opcode.h opcode.pl
134 The shmwrite operator is a list operator but neglected to push a stack
135 mark beforehand, because an 'm' was missing from opcode.pl.
137 NETaa13773: $. was misdocumented as read-only.
139 Files patched: pod/perlvar.pod
140 <1.array-element-read-only>
141 % perl -le '$,=", "; $#w=5; for (@w) { $_=1; } print @w'
142 Modification of a read-only value attempted at -e line 1.
143 % perl4 -le '$,=", "; $#w=5; for (@w) { $_=1; } print @w'
146 This one may stay the way it is for performance reasons.
153 % perl -e 'BEGIN { local $/ = ""; } print "$.:$_" while <>;' abc
157 % perl -e '{ local $/ = ""; } print "$.:$_" while <>;' abc
162 $/ wasn't initialized early enough, so local set it back to permanently
163 undefined on exit from the block.
166 % perl -le 'print grep(/^-/ ? ($x=$_) x 0 : 1, "a", "-b", "c");'
169 % perl4 -le 'print grep(/^-/ ? ($x=$_) x 0 : 1, "a", "-b", "c");'
172 An extra mark was left on the stack if (('x') x $repeat) was used in a scalar
175 <4.input-lineno-assign>
176 # perl -w does not complain about assignment to $. (Is this just a feature?)
177 # perlvar.pod says "This variable should be considered read-only."
182 % perl -wnle '$. = 10 if $. == 2; print "$.:$_"' abc
189 <5.local-soft-ref.bug>
190 % perl -e 'local ${"a"}=1;'
191 zsh: 529 segmentation fault perl -e 'local ${"a"}=1;'
194 Can't localize a reference at -e line 1.
197 % perl -e 'package foo; sub foo { 1; } package main; $_ = foo::foo(); print'
200 package readline; sub foo { 1; } package main; $_ = readline::foo(); print'
201 Undefined subroutine &main::foo called at -e line 1.
203 package readline; sub foo { 1; } package main; $_ = &readline::foo(); print'
206 Now treats foo::bar correctly even if foo is a keyword.
208 <7.page-head-set-to-null-string>
210 #From: russell@ccu1.auckland.ac.nz (Russell Fulton)
211 #Newsgroups: comp.lang.perl
212 #Subject: This script causes Perl 5.00 to sementation fault
213 #Date: 15 Nov 1994 00:11:37 GMT
214 #Message-ID: <3a8ubp$jrj@net.auckland.ac.nz>
216 select((select(STDOUT), $^='')[0]); #this is the critical line
227 zsh: 1799 segmentation fault perl /tmp/page-head
230 Undefined top format "main::" called at ./try line 11.
234 % perl -le 'sub foo {0}; $x[0]=0;$x[foo]<=0'
235 Unterminated <> operator at -e line 1.
236 % perl -le 'sub foo {0}; $x[0]=0;$x[foo()]<=0'
238 A right square bracket now forces expectation of an operator.
240 <9.unary-minus-to-regexp-var>
242 #From: Michael Cook <mcook@cognex.com>
243 #Newsgroups: comp.lang.perl
244 #Subject: bug: print -$1
245 #Date: 01 Feb 1995 15:31:25 GMT
246 #Message-ID: <MCOOK.95Feb1103125@erawan.cognex.com>
259 Apparently already fixed in my copy.
263 ## Offset values are changed for my machine.
265 #From: augustin@gdstech.grumman.com (Conrad Augustin)
266 #Subject: perl5 vec() bug?
267 #Message-ID: <1994Nov22.193728.25762@gdstech.grumman.com>
268 #Date: Tue, 22 Nov 1994 19:37:28 GMT
270 #The following two statements each produce a segmentation fault in perl5:
272 #vec($a, 21406, 32) = 1; # seg fault
273 vec($a, 42813, 16) = 1; # seg fault
275 #When the offset values are one less, all's well:
276 #vec($a, 21405, 32) = 1; # ok
277 #vec($a, 42812, 16) = 1; # ok
279 #Interestingly, this is ok for all high values of N:
280 #$N=1000000; vec($a, $N, 8) = 1;
283 zsh: 1806 segmentation fault perl vec-bug
285 Can't reproduce this one.
288 NETaa13773: $/ not correctly localized in BEGIN
289 Files patched: perl.c
292 NETaa13773: foo::bar was misparsed if foo was a reserved word
293 Files patched: toke.c toke.c
296 NETaa13773: right square bracket didn't force expectation of operator
297 Files patched: toke.c
300 NETaa13773: scalar ((x) x $repeat) left stack mark
304 NETaa13778: -w coredumps on <$>
306 Files patched: pp_hot.c toke.c
307 Now produces suggested error message. Also installed guard in warning code
310 NETaa13779: foreach didn't use savestack mechanism
312 Files patched: cop.h pp_ctl.c
313 The foreach mechanism saved the old scalar value on the context stack
314 rather than the savestack. It could consequently get out of sync if
315 unexpectedly unwound.
317 NETaa13785: GIMME sometimes used wrong context frame
319 Files patched: embed.h global.sym op.h pp_ctl.c proto.h
320 The expression inside the return was taking its context from the immediately
321 surrounding block rather than the innermost surrounding subroutine call.
323 NETaa13797: could modify sv_undef through auto-vivification
324 From: Ilya Zakharevich
326 Inserted the missing check for readonly values on auto-vivification.
328 NETaa13798: if (...) {print} treats print as quoted
330 Files patched: toke.c
331 The trailing paren of the condition was setting expectations to XOPERATOR
332 rather than XBLOCK, so it was being treated like ${print}.
334 NETaa13926: commonality was not detected in assignments using COND_EXPR
336 Files patched: opcode.h opcode.pl
337 The assignment compiler didn't check the 2nd and 3rd args of a ?:
338 for commonality. It still doesn't, but I made ?: into a "dangerous"
339 operator so it is forced to treat it as common.
341 NETaa13957: was marking the PUSHMARK as modifiable rather than the arg
343 Files patched: op.c sv.c
344 It was marking the PUSHMARK as modifiable rather than the arg.
346 NETaa13962: documentation of behavior of scalar <*> was unclear
347 From: Tom Christiansen
348 Files patched: pod/perlop.pod
349 Added the following to perlop:
351 A glob only evaluates its (embedded) argument when it is starting a new
352 list. All values must be read before it will start over. In a list
353 context this isn't important, because you automatically get them all
354 anyway. In a scalar context, however, the operator returns the next value
355 each time it is called, or a FALSE value if you've just run out. Again,
356 FALSE is returned only once. So if you're expecting a single value from
357 a glob, it is much better to say
365 because the latter will alternate between returning a filename and
369 NETaa13986: split ignored /m pattern modifier
370 From: Winfried Koenig
372 Fixed to work like m// and s///.
374 NETaa13992: regexp comments not seen after + in non-extended regexp
376 Files patched: regcomp.c
377 The code to skip regexp comments was guarded by a conditional that only
378 let it work when /x was in effect.
380 NETaa14014: use subs should not count as definition, only as declaration
383 On *foo = \&bar, doesn't set GVf_IMPORTED if foo and bar are in same package.
385 NETaa14021: sv_inc and sv_dec "upgraded" magical SV to non-magical
389 The sv_inc() and sv_dec() routines "upgraded" null magical SVs to non-magical.
391 NETaa14086: require should check tainting
392 From: Karl Simon Berg
393 Files patched: pp_ctl.c
394 Since we shouldn't allow tainted requires anyway, it now says:
396 Insecure dependency in require while running with -T switch at tst.pl line 1.
398 NETaa14104: negation fails on magical variables like $1
401 Negation was failing on magical values like $1. It was testing the wrong
402 bits and also failed to provide a final "else" if none of the bits matched.
404 NETaa14107: deep sort return leaked contexts
405 From: Quentin Fennessy
406 Files patched: pp_ctl.c
407 Needed to call dounwind() appropriately.
409 NETaa14129: attempt to localize via a reference core dumps
411 Files patched: op.c pod/perldiag.pod
412 Now produces an error "Can't localize a reference", with explanation in
415 NETaa14138: substr() and s/// can cause core dump
417 Files patched: pp_hot.c
418 Forgot to call SvOOK_off() on the SV before freeing its string.
420 NETaa14145: ${@INC}[0] dumped core in debugger
423 Now croaks "Bizarre copy of ARRAY in block exit", which is better than
424 a core dump. The fact that ${@INC}[0] means $INC[0] outside the debugger
427 NETaa14147: bitwise assignment ops wipe out byte of target string
429 Files patched: doop.c
430 The code was assuming that the target was not either of the two operands,
431 which is false for an assignment operator.
433 NETaa14153: lexing of lexicals in patterns fooled by character class
435 Files patched: toke.c
436 It never called the dwimmer, which is how it fooled it.
438 NETaa14154: allowed autoloaded methods by recognizing sub method; declaration
441 Made sub method declaration sufficient for autoloader to stop searching on.
443 NETaa14156: shouldn't optimize block scope on tainting
445 Files patched: op.c toke.c
446 I totally disabled the block scope optimization when running tainted.
448 NETaa14157: -T and -B only allowed 1/30 "odd" characters--changed to 1/3
450 Files patched: pp_sys.c
451 Applied suggested patch.
453 NETaa14160: deref of null symbol should produce null list
455 Files patched: pp_hot.c
456 It didn't check for list context before returning undef.
458 NETaa14162: POSIX::gensym now returns a symbol reference
459 From: Josh N. Pritikin
461 Files patched: ext/POSIX/POSIX.pm
462 Applied suggested patch.
464 NETaa14164: POSIX autoloader now distinguishes non-constant "constants"
465 From: Tim Bunce <Tim.Bunce@ig.co.uk>
466 Files patched: ext/POSIX/POSIX.pm ext/POSIX/POSIX.xs
467 The .xs file now distinguishes non-constant "constants" by setting EAGAIN.
468 This will also let us use #ifdef within the .xs file to de-constantify
469 any other macros that happen not to be constants even if they don't use
472 NETaa14166: missing semicolon after "my" induces core dump
474 Files patched: toke.c
475 The parser was left thinking it was still processing a "my", and flubbed.
476 I made it wipe out the "in_my" variable on a syntax error.
478 NETaa14166: missing semicolon after "my" induces core dump"
479 Files patched: toke.c
482 NETaa14206: can now use English and strict at the same time
485 It now counts imported symbols as okay under "use strict".
487 NETaa14206: can now use English and strict at the same time
488 Files patched: gv.c pod/perldiag.pod
491 NETaa14265: elseif now produces severe warning
493 Files patched: pod/perldiag.pod toke.c
494 Now complains explicitly about "elseif".
496 NETaa14279: list assignment propagated taintedness to independent scalars
498 Files patched: pp_hot.c
499 List assignment needed to be modified so that tainting didn't propagate
500 between independent scalar values.
502 NETaa14312: undef in @EXPORTS core dumps
504 Files patched: lib/Exporter.pm
507 Unable to create sub named "t::" at lib/Exporter.pm line 159.
508 Illegal null symbol in @t::EXPORT at -e line 1
509 BEGIN failed--compilation aborted at -e line 1.
512 NETaa14312: undef in @EXPORTS core dumps
513 Files patched: pod/perldiag.pod sv.c
516 NETaa14321: literal @array check shouldn't happen inside embedded expressions
518 Files patched: toke.c
519 The general solution to this is to disable the literal @array check within
520 any embedded expression. For instance, this also failed bogusly:
524 The reason fixing this also fixes the s///e problem is that the lexer
525 effectively puts the RHS into a do {} block, making the expression
526 embedded within curlies, as far as the error message is concerned.
528 NETaa14322: now localizes $! during POSIX::AUTOLOAD
530 Files patched: ext/POSIX/POSIX.pm
533 NETaa14324: defined() causes spurious sub existence
534 From: "Andreas Koenig"
535 Files patched: op.c pp.c
536 It called pp_rv2cv which wrongly assumed it could add any sub it referenced.
538 NETaa14336: use Module () forces import of nothing
541 use Module () now refrains from calling import at all.
543 NETaa14353: added special HE allocator
545 Files patched: global.sym
547 NETaa14353: added special HE allocator
548 Files patched: hv.c perl.h
550 NETaa14353: array extension now converts old memory to SV storage.
551 Files patched: av.c av.h sv.c
553 NETaa14353: hashes now convert old storage into SV arenas.
554 Files patched: global.sym
556 NETaa14353: hashes now convert old storage into SV arenas.
557 Files patched: hv.c perl.h
559 NETaa14353: upgraded SV arena allocation
560 Files patched: proto.h
562 NETaa14353: upgraded SV arena allocation
563 Files patched: perl.c sv.c
565 NETaa14422: added rudimentary prototypes
567 Files patched: Makefile.SH op.c op.c perly.c perly.c.diff perly.h perly.y proto.h sv.c toke.c
568 Message-Id: <9509290018.AA21548@scalpel.netlabs.com>
569 To: doughera@lafcol.lafayette.edu (Andy Dougherty)
570 Cc: perl5-porters@africa.nicoh.com
571 Subject: Re: Jumbo Configure patch vs. 1m.
572 Date: Thu, 28 Sep 95 17:18:54 -0700
573 From: lwall@scalpel.netlabs.com (Larry Wall)
575 : No. Larry's currently got the patch pumpkin for all such core perl topics.
577 I dunno whether you should let me have the patch pumpkin or not. To fix
578 a Sev 2 I just hacked in rudimentary prototypes. :-)
580 We can now define true unary subroutines, as well as argumentless
583 sub baz () { 12; } # Must not have argument
584 sub bar ($) { $_[0] * 7 } # Must have exactly one argument
585 sub foo ($@) { print "@_\n" } # Must have at least one argument
586 foo bar baz / 2 || "oops", "is the answer";
588 This prints "42 is the answer" on my machine. That is, it's the same as
590 foo( bar( baz() / 2) || "oops", "is the answer");
592 Attempting to compile
598 Too few arguments for main::foo at ./try line 8, near "foo;"
606 Too many arguments for main::bar at ./try line 8, near "foo;"
610 @array = ('a','b','c');
613 prints "3 a b c" because the $ puts the first arg of foo into scalar context.
615 The main win at this point is that we can say
620 and the user can say AAA + BBB and get 3.
622 I'm not quite sure how this interacts with autoloading though. I fear
623 POSIX.pm will need to say
631 sub _SC_STREAM_MAX ();
632 sub _SC_TZNAME_MAX ();
635 unless we can figure out how to efficiently declare a default prototype
636 at import time. Meaning, not using eval. Currently
640 (the ordinary import mechanism) implicitly stubs &bar with no prototype if
641 &bar is not yet declared. It's almost like you want an AUTOPROTO to
642 go with your AUTOLOAD.
644 Another thing to rub one's 5 o'clock shadow over is that there's no way
645 to apply a prototype to a method call at compile time.
647 And no, I don't want to have the
649 sub howabout ($formal, @arguments) { ... }
655 NETaa14422: couldn't take reference of a prototyped function
659 NETaa14423: use didn't allow expressions involving the scratch pad
661 Files patched: op.c perly.c perly.c.diff perly.y proto.h vms/perly_c.vms
662 Applied suggested patch.
664 NETaa14444: lexical scalar didn't autovivify
665 From: Gurusamy Sarathy
666 Files patched: op.c pp_hot.c
667 It didn't have code in pp_padsv to do the right thing.
669 NETaa14448: caller could dump core when used within an eval or require
670 From: Danny R. Faught
671 Files patched: pp_ctl.c
672 caller() was incorrectly assuming the context stack contained a subroutine
673 context when it in fact contained an eval context.
675 NETaa14451: improved error message on bad pipe filehandle
676 From: Danny R. Faught
677 Files patched: pp_sys.c
678 Now says the slightly more informative
680 Can't use an undefined value as filehandle reference at ./try line 3.
682 NETaa14462: pp_dbstate had a scope leakage on recursion suppression
684 Files patched: pp_ctl.c
685 Swapped the code in question around.
687 NETaa14482: sv_unref freed ref prematurely at times
688 From: Gurusamy Sarathy
690 Made sv_unref() mortalize rather than free the old reference.
692 NETaa14484: appending string to array produced bizarre results
694 Also: Malcolm Beattie
695 Files patched: pp_hot.c
696 Will now say, "Can't coerce ARRAY to string".
698 NETaa14525: assignment to globs didn't reset them correctly
699 From: Gurusamy Sarathy
701 Applied parts of patch not overridden by subsequent patch.
703 NETaa14529: a partially matching subpattern could spoof infinity detector
705 Files patched: regexec.c
706 A partial match on a subpattern could fool the infinite regress detector
707 into thinking progress had been made.
708 The previous workaround prevented another bug (NETaa14529) from being fixed,
709 so I've backed it out. I'll need to think more about how to detect failure
710 to progress. I'm still hopeful it's not equivalent to the halting problem.
712 NETaa14535: patches from Gurusamy Sarathy
713 From: Gurusamy Sarathy
714 Files patched: op.c pp.c pp_hot.c regexec.c sv.c toke.c
715 Applied most recent suggested patches.
717 NETaa14537: select() can return too soon
719 Also: Andreas Gustafsson
720 Files patched: pp_sys.c
722 NETaa14538: method calls were treated like do {} under loop modifiers
723 From: Ilya Zakharevich
724 Files patched: perly.c perly.y
725 Needed to take the OPf_SPECIAL flag off of entersubs from method reductions.
726 (It was probably a cut-and-paste error from long ago.)
728 NETaa14540: foreach (@array) no longer does extra stack copy
729 From: darrinm@lmc.com
730 Files patched: Todo op.c pp_ctl.c pp_hot.c
731 Fixed by doing the foreach(@array) optimization, so it iterates
732 directly through the array, and can detect the implicit shift from
735 NETaa14541: new version of perlbug
736 From: Kenneth Albanowski
737 Files patched: README pod/perl.pod utils/perlbug.PL
738 Brought it up to version 1.09.
740 NETaa14541: perlbug 1.11
741 Files patched: utils/perlbug.PL
744 NETaa14548: magic sets didn't check private OK bits
745 From: W. Bradley Rubenstein
747 The magic code was getting mixed up between private and public POK bits.
749 NETaa14550: made ~ magic magical
752 Applied suggested patch.
754 NETaa14551: humongous header causes infinite loop in format
756 Files patched: pp_sys.c
757 Needed to check for page exhaustion after doing top-of-form.
759 NETaa14558: attempt to call undefined top format core dumped
760 From: Hallvard B Furuseth
761 Files patched: pod/perldiag.pod pp_sys.c
762 Now issues an error on attempts to call a non-existent top format.
764 NETaa14561: Gurusamy Sarathy's G_KEEPERR patch
766 Also: Gurusamy Sarathy
768 Files patched: cop.h interp.sym perl.c perl.h pp_ctl.c pp_sys.c sv.c toke.c
769 Applied latest patch.
771 NETaa14581: shouldn't execute BEGIN when there are compilation errors
772 From: Rickard Westman
774 Perl should not try to execute BEGIN and END blocks if there's been a
777 NETaa14582: got SEGV sorting sparse array
779 Files patched: pp_ctl.c
780 Now weeds out undefined values much like Perl 4 did.
781 Now sorts undefined values to the front.
783 NETaa14582: sort was letting unsortable values through to comparison routine
784 Files patched: pp_ctl.c
787 NETaa14585: globs in pad space weren't properly cleaned up
788 From: Gurusamy Sarathy
789 Files patched: op.c pp.c pp_hot.c sv.c
790 Applied suggested patch.
792 NETaa14614: now does dbmopen with perl_eval_sv()
794 Files patched: perl.c pp_sys.c proto.h
795 dbmopen now invokes perl_eval_sv(), which should handle error conditions
798 NETaa14618: exists doesn't work in GDBM_File
800 Files patched: ext/GDBM_File/GDBM_File.xs
801 Applied suggested patch.
806 Files patched: embed.h global.sym keywords.h keywords.pl opcode.h opcode.pl pp_sys.c toke.c
807 Applied suggested patch.
809 NETaa14636: Jumbo Dynaloader patch
811 Files patched: ext/DynaLoader/DynaLoader.pm ext/DynaLoader/dl_dld.xs ext/DynaLoader/dl_dlopen.xs ext/DynaLoader/dl_hpux.xs ext/DynaLoader/dl_next.xs ext/DynaLoader/dl_vms.xs ext/DynaLoader/dlutils.c
812 Applied suggested patches.
814 NETaa14637: checkcomma routine was stupid about bareword sub calls
815 From: Tim Bunce <Tim.Bunce@ig.co.uk>
816 Files patched: toke.c
817 The checkcomma routine was stupid about bareword sub calls.
819 NETaa14639: (?i) didn't reset on runtime patterns
821 Files patched: op.h pp_ctl.c toke.c
822 It didn't distinguish between permanent flags outside the pattern and
823 temporary flags within the pattern.
825 NETaa14649: selecting anonymous globs dumps core
826 From: Chip Salzenberg
827 Files patched: cop.h doio.c embed.h global.sym perl.c pp_sys.c proto.h
828 Applied suggested patch, but reversed the increment and decrement to avoid
829 decrementing and freeing what we're going to increment.
831 NETaa14655: $? returned negative value on AIX
834 Files patched: pp_sys.c
835 Applied suggested patch.
837 NETaa14668: {2,} could match once
838 From: Hugo van der Sanden
839 Files patched: regexec.c
840 When an internal pattern failed a conjecture, it didn't back off on the
841 number of times it thought it had matched.
843 NETaa14673: open $undefined dumped core
844 From: Samuli K{rkk{inen
845 Files patched: pp_sys.c
846 pp_open() didn't check its argument for globness.
848 NETaa14683: stringifies were running pad out of space
850 Files patched: op.h toke.c
851 Increased PADOFFSET to a U32, and made lexer not put double-quoted strings
852 inside OP_STRINGIFY unless they really needed it.
854 NETaa14689: shouldn't have . in @INC when tainting
855 From: William R. Somsky
856 Files patched: perl.c
857 Now does not put . into @INC when tainting. It may still be added with a
861 or, to put it at the end,
863 BEGIN { push(@INC, ".") }
865 but this is not recommended unless a chdir to a known location has been done
868 NETaa14690: values inside tainted SVs were ignored
869 From: "James M. Stern"
870 Files patched: pp.c pp_ctl.c
871 It was assuming that a tainted value was a string.
873 NETaa14692: format name required qualification under use strict
874 From: Tom Christiansen
876 Now treats format names the same as subroutine names.
878 NETaa14695: added simple regexp caching
880 Files patched: pp_ctl.c
881 Applied suggested patch.
883 NETaa14697: regexp comments were sometimes wrongly treated as literal text
884 From: Tom Christiansen
885 Files patched: regcomp.c
886 The literal-character grabber didn't know about extended comments.
888 (By the way, Tom, the boxed form of quoting in the previous enclosure is
889 exceeding antisocial when you want to extract the code from it.)
891 NETaa14704: closure got wrong outer scope if outer sub was predeclared
894 The outer scope of the anonymous sub was set to the stub rather than to
895 the actual subroutine. I kludged it by making the outer scope of the
896 stub be the actual subroutine, if anything is depending on the stub.
898 NETaa14705: $foo .= $foo did free memory read
901 Now modifies address to copy if it was reallocated.
903 NETaa14709: Chip's FileHandle stuff
905 Also: Chip Salzenberg
906 Files patched: MANIFEST ext/FileHandle/FileHandle.pm ext/FileHandle/FileHandle.xs ext/FileHandle/Makefile.PL ext/POSIX/POSIX.pm ext/POSIX/POSIX.pod ext/POSIX/POSIX.xs lib/FileCache.pm lib/Symbol.pm t/lib/filehand.t t/lib/posix.t
907 Applied suggested patches.
909 NETaa14711: added (&) and (*) prototypes for blocks and symbols
910 From: Kenneth Albanowski
911 Files patched: Makefile.SH op.c perly.c perly.h perly.y toke.c
912 & now means that it must have an anonymous sub as that argument. If
913 it's the first argument, the sub may be specified as a block in the
914 indirect object slot, much like grep or sort, which have prototypes of (&@).
916 Also added * so you can do things like
920 myopen(FOO, $filename);
922 NETaa14713: setuid FROM root now defaults to not do tainting
924 Files patched: mg.c perl.c pp_hot.c
925 Applied suggested patch.
927 NETaa14714: duplicate magics could be added to an SV
929 Files patched: sv.c sv.c
930 The sv_magic() routine didn't properly check to see if it already had a
931 magic of that type. Ordinarily it would have, but it was called during
932 mg_get(), which forces the magic flags off temporarily.
934 NETaa14721: sub defined during erroneous do-FILE caused core dump
937 Fixed the seg fault. I couldn't reproduce the return problem.
939 NETaa14734: ref should never return undef
941 Files patched: pp.c t/op/overload.t
942 Now returns null string.
944 NETaa14751: slice of undefs now returns null list
946 Files patched: pp.c pp_hot.c
947 Null list clobberation is now done in lslice, not aassign.
949 NETaa14789: select coredumped on Linux
951 Files patched: pp_sys.c
952 Applied suggested patches, more or less.
954 NETaa14789: straightened out ins and out of duping
955 Files patched: lib/IPC/Open3.pm
958 NETaa14791: implemented internal SUPER class
959 From: Nick Ing-Simmons
962 Applied suggested patch.
964 NETaa14845: s/// didn't handle offset strings
966 Files patched: pp_ctl.c
967 Needed a call to SvOOK_off(targ) in pp_substcont().
969 NETaa14851: Use of << to mean <<"" is deprecated
971 Files patched: toke.c
973 NETaa14865: added HINT_BLOCK_SCOPE to "elsif"
975 Files patched: perly.y
976 Needed to set HINT_BLOCK_SCOPE on "elsif" to prevent the do block from
977 being optimized away, which caused the statement transition in elsif
978 to reset the stack too far back.
980 NETaa14876: couldn't delete localized GV safely
982 Files patched: pp.c scope.c
983 The reference count of the "borrowed" GV needed to be incremented while
984 there was a reference to it in the savestack.
986 NETaa14887: couldn't negate magical scalars
988 Also: Gurusamy Sarathy
990 Applied suggested patch, more or less. (It's not necessary to test both
991 SvNIOK and SvNIOKp, since the private bits are always set if the public
994 NETaa14893: /m modifier was sticky
996 Files patched: pp_ctl.c
997 pp_match() and pp_subst() were using an improperly scoped SAVEINT to restore
998 the value of the internal variable multiline.
1000 NETaa14893: /m modifier was sticky
1001 Files patched: cop.h pp_hot.c
1004 NETaa14916: complete.pl retained old return value
1006 Files patched: lib/complete.pl
1007 Applied suggested patch.
1009 NETaa14928: non-const 3rd arg to split assigned to list could coredump
1010 From: Hans de Graaff
1012 The optimizer was assuming the OP was an OP_CONST.
1014 NETaa14942: substr as lvalue could disable magic
1015 From: Darrell Kindred <dkindred+@cmu.edu>
1017 The substr was disabling the magic of $1.
1019 NETaa14990: "not" not parseable when expecting term
1020 From: "Randal L. Schwartz"
1021 Files patched: perly.c perly.c.diff perly.y vms/perly_c.vms
1022 The NOTOP production needed to be moved down into the terms.
1024 NETaa14993: Bizarre copy of formline
1025 From: Tom Christiansen
1026 Also: Charles Bailey
1028 Applied suggested patch.
1030 NETaa14998: sv_add_arena() no longer leaks memory
1031 From: Andreas Koenig
1032 Files patched: av.c hv.c perl.h sv.c
1033 Now keeps one potential arena "on tap", but doesn't use it unless there's
1034 demand for SV headers. When an AV or HV is extended, its old memory
1035 becomes the next potential arena unless there already is one, in which
1036 case it is simply freed. This will have the desired property of not
1037 stranding medium-sized chunks of memory when extending a single array
1038 repeatedly, but will not degrade when there's no SV demand beyond keeping
1039 one chunk of memory on tap, which generally will be about 250 bytes big,
1040 since it prefers the earlier freed chunk over the later. See the nice_chunk
1043 NETaa14999: $a and $b now protected from use strict and lexical declaration
1044 From: Tom Christiansen
1045 Files patched: gv.c pod/perldiag.pod toke.c
1046 Bare $a and $b are now allowed during "use strict". In addition,
1047 the following diag was added:
1049 =item Can't use "my %s" in sort comparison
1051 (F) The global variables $a and $b are reserved for sort comparisons.
1052 You mentioned $a or $b in the same line as the <=> or cmp operator,
1053 and the variable had earlier been declared as a lexical variable.
1054 Either qualify the sort variable with the package name, or rename the
1058 NETaa15034: use strict refs should allow calls to prototyped functions
1059 From: Roderick Schertler
1060 Files patched: perly.c perly.c.diff perly.y toke.c vms/perly_c.vms
1061 Applied patch suggested by Chip.
1063 NETaa15083: forced $AUTOLOAD to be untainted
1065 Files patched: gv.c pp_hot.c
1066 Stripped any taintmagic from $AUTOLOAD after setting it.
1068 NETaa15084: patch for Term::Cap
1070 Also: Hugo van der Sanden
1071 Files patched: lib/Term/Cap.pm
1072 Applied suggested patch.
1074 NETaa15086: null pattern could cause coredump in s//_$1_/
1075 From: "Paul E. Maisano"
1076 Files patched: cop.h pp_ctl.c
1077 If the replacement pattern was complicated enough to cause pp_substcont
1078 to be called, then it lost track of which REGEXP* it was supposed to
1081 NETaa15087: t/io/pipe.t didn't work on AIX
1082 From: Andy Dougherty
1083 Files patched: t/io/pipe.t
1084 Applied suggested patch.
1086 NETaa15088: study was busted
1087 From: Hugo van der Sanden
1088 Files patched: opcode.h opcode.pl pp.c
1089 It was studying its scratch pad target rather than the argument supplied.
1091 NETaa15090: MSTATS patch
1093 Files patched: global.sym malloc.c perl.c perl.h proto.h
1094 Applied suggested patch.
1096 NETaa15098: longjmp out of magic leaks memory
1097 From: Chip Salzenberg
1098 Files patched: mg.c sv.c
1099 Applied suggested patch.
1101 NETaa15102: getpgrp() is broken if getpgrp2() is available
1102 From: Roderick Schertler
1103 Files patched: perl.h pp_sys.c
1104 Applied suggested patch.
1106 NETaa15103: prototypes leaked opcodes
1107 From: Chip Salzenberg
1109 Applied suggested patch.
1111 NETaa15107: quotameta memory bug on all metacharacters
1112 From: Chip Salzenberg
1114 Applied suggested patch.
1116 NETaa15108: Fix for incomplete string leak
1117 From: Chip Salzenberg
1118 Files patched: toke.c
1119 Applied suggested patch.
1121 NETaa15110: couldn't use $/ with 8th bit set on some architectures
1122 From: Chip Salzenberg
1123 Files patched: doop.c interp.sym mg.c op.c perl.c perl.h pp_ctl.c pp_hot.c pp_sys.c sv.c toke.c util.c
1124 Applied suggested patches.
1126 NETaa15112: { a_1 => 2 } didn't parse as expected
1127 From: Stuart M. Weinstein
1128 Files patched: toke.c
1129 The little dwimmer was only skipping ALPHA rather than ALNUM chars.
1131 NETaa15123: bitwise ops produce spurious warnings
1132 From: Hugo van der Sanden
1133 Also: Chip Salzenberg
1134 Also: Andreas Gustafsson
1136 Decided to suppress the warning in the conversion routines if merely converting
1137 a temporary, which can never be a user-supplied value anyway.
1139 NETaa15129: #if defined (foo) misparsed in h2ph
1140 From: Roderick Schertler <roderick@gate.net>
1141 Files patched: utils/h2ph.PL
1142 Applied suggested patch.
1144 NETaa15131: some POSIX functions assumed valid filehandles
1145 From: Chip Salzenberg
1146 Files patched: ext/POSIX/POSIX.xs
1147 Applied suggested patch.
1149 NETaa15151: don't optimize split on OPpASSIGN_COMMON
1152 Had to swap the optimization down to after the assignment op is generated
1153 and COMMON is calculated, and then clean up the resultant tree differently.
1155 NETaa15154: MakeMaker-5.18
1156 From: Andreas Koenig
1157 Files patched: MANIFEST lib/ExtUtils/Liblist.pm lib/ExtUtils/MM_VMS.pm lib/ExtUtils/MakeMaker.pm lib/ExtUtils/Mksymlists.pm
1158 Brought it up to 5.18.
1160 NETaa15156: some Exporter tweaks
1161 From: Roderick Schertler
1163 Files patched: lib/Exporter.pm
1164 Also did Tim's Tiny Trivial patch.
1166 NETaa15157: new version of Test::Harness
1167 From: Andreas Koenig
1168 Files patched: lib/Test/Harness.pm
1169 Applied suggested patch.
1171 NETaa15175: overloaded nomethod has garbage 4th op
1172 From: Ilya Zakharevich
1174 Applied suggested patch.
1176 NETaa15179: SvPOK_only shouldn't back off on offset pointer
1177 From: Gutorm.Hogasen@oslo.teamco.telenor.no
1179 SvPOK_only() was calling SvOOK_off(), which adjusted the string pointer
1180 after tr/// has already acquired it. It shouldn't really be necessary
1181 for SvPOK_only() to undo an offset string pointer, since there's no
1182 conflict with a possible integer value where the offset is stored.
1184 NETaa15193: & now always bypasses prototype checking
1186 Files patched: dump.c op.c op.h perly.c perly.c.diff perly.y pod/perlsub.pod pp_hot.c proto.h toke.c vms/perly_c.vms vms/perly_h.vms
1187 Turned out to be a big hairy deal because the lexer turns foo() into &foo().
1188 But it works consistently now. Also fixed pod.
1190 NETaa15197: 5.002b2 is 'appending' to $@
1191 From: Gurusamy Sarathy
1192 Files patched: pp_ctl.c
1193 Applied suggested patch.
1195 NETaa15201: working around Linux DBL_DIG problems
1196 From: Kenneth Albanowski
1197 Files patched: hints/linux.sh sv.c
1198 Applied suggested patch.
1200 NETaa15208: SelectSaver
1201 From: Chip Salzenberg
1202 Files patched: MANIFEST lib/SelectSaver.pm
1203 Applied suggested patch.
1205 NETaa15209: DirHandle
1206 From: Chip Salzenberg
1207 Files patched: MANIFEST lib/DirHandle.pm t/lib/dirhand.t
1209 NETaa15210: sysopen()
1210 From: Chip Salzenberg
1211 Files patched: doio.c keywords.pl lib/ExtUtils/typemap opcode.pl pod/perlfunc.pod pp_hot.c pp_sys.c proto.h toke.c
1212 Applied suggested patch. Hope it works...
1214 NETaa15211: use mnemonic names in Safe setup
1215 From: Chip Salzenberg
1216 Files patched: ext/Safe/Safe.pm
1217 Applied suggested patch, more or less.
1219 NETaa15214: prototype()
1220 From: Chip Salzenberg
1221 Files patched: ext/Safe/Safe.pm global.sym keywords.pl opcode.pl pp.c toke.c
1222 Applied suggested patch.
1224 NETaa15217: -w problem with -d:foo
1226 Files patched: perl.c
1227 Applied suggested patch.
1229 NETaa15218: *GLOB{ELEMENT}
1231 Files patched: Makefile.SH embed.h ext/Safe/Safe.pm keywords.h opcode.h opcode.h opcode.pl perly.c perly.c.diff perly.y pp_hot.c t/lib/safe.t vms/perly_c.vms
1233 NETaa15219: Make *x=\*y do like *x=*y
1234 From: Chip Salzenberg
1236 Applied suggested patch.
1238 NETaa15221: Indigestion with Carp::longmess and big eval '...'s
1240 Files patched: lib/Carp.pm
1241 Applied suggested patch.
1243 NETaa15222: VERSION patch for standard extensions
1245 Files patched: ext/DB_File/Makefile.PL ext/DynaLoader/DynaLoader.pm ext/DynaLoader/Makefile.PL ext/Fcntl/Fcntl.pm ext/Fcntl/Makefile.PL ext/GDBM_File/GDBM_File.pm ext/GDBM_File/Makefile.PL ext/NDBM_File/Makefile.PL ext/NDBM_File/NDBM_File.pm ext/ODBM_File/Makefile.PL ext/ODBM_File/ODBM_File.pm ext/POSIX/Makefile.PL ext/POSIX/POSIX.pm ext/SDBM_File/Makefile.PL ext/SDBM_File/SDBM_File.pm ext/Safe/Makefile.PL ext/Safe/Safe.pm ext/Socket/Makefile.PL
1246 Applied suggested patch.
1248 NETaa15222: VERSION patch for standard extensions (reprise)
1249 Files patched: ext/DB_File/DB_File.pm ext/DynaLoader/DynaLoader.pm ext/Fcntl/Fcntl.pm ext/GDBM_File/GDBM_File.pm ext/NDBM_File/NDBM_File.pm ext/ODBM_File/ODBM_File.pm ext/POSIX/POSIX.pm ext/SDBM_File/SDBM_File.pm ext/Safe/Safe.pm ext/Socket/Socket.pm
1252 NETaa15227: $i < 10000 should optimize to integer op
1254 Files patched: op.c op.c
1257 for ($i = 0; $i < 100000; $i++) {
1261 takes about one quarter the memory if the optimizer decides that it can
1262 use an integer < comparison rather than floating point. It now does so
1263 if one side is an integer constant and the other side a simple variable.
1264 This should really help some of our benchmarks. You can still force a
1265 floating point comparison by using 100000.0 instead.
1267 NETaa15228: CPerl-mode patch
1268 From: Ilya Zakharevich
1269 Files patched: emacs/cperl-mode.el
1270 Applied suggested patch.
1272 NETaa15231: Symbol::qualify()
1273 From: Chip Salzenberg
1274 Files patched: ext/FileHandle/FileHandle.pm gv.c lib/SelectSaver.pm lib/Symbol.pm pp_hot.c
1275 Applied suggested patch.
1277 NETaa15236: select select broke under use strict
1278 From: Chip Salzenberg
1280 Instead of inventing a new bit, I just turned off the HINT_STRICT_REFS bit.
1281 I don't think it's worthwhile distinguishing between qualified or unqualified
1284 NETaa15237: use vars
1286 Files patched: MANIFEST gv.c lib/subs.pm lib/vars.pm sv.c
1288 NETaa15240: keep op names _and_ descriptions
1289 From: Chip Salzenberg
1290 Files patched: doio.c embed.h ext/Safe/Safe.pm ext/Safe/Safe.xs global.sym op.c opcode.h opcode.pl scope.c sv.c
1291 Applied suggested patch.
1293 NETaa15259: study doesn't unset on string modification
1295 Files patched: mg.c pp.c
1296 Piggybacked on m//g unset magic to unset the study too.
1298 NETaa15276: pick a better initial cxstack_max
1299 From: Chip Salzenberg
1300 Files patched: perl.c
1301 Added fudge in, and made it calculate how many it could fit into (most of) 8K,
1302 to avoid getting 16K of Kingsley malloc.
1304 NETaa15287: numeric comparison optimization adjustments
1307 Applied patch suggested by Chip, with liberalization to >= and <=.
1309 NETaa15299: couldn't eval string containing pod or __DATA__
1310 From: Andreas Koenig
1312 Files patched: toke.c
1313 Basically, eval didn't know how to bypass pods correctly.
1315 NETaa15300: sv_backoff problems
1318 Also: Chip Salzenberg
1319 Files patched: op.c sv.c sv.h
1320 Applied suggested patch.
1322 NETaa15312: Avoid fclose(NULL)
1323 From: Chip Salzenberg
1324 Files patched: toke.c
1325 Applied suggested patch.
1327 NETaa15318: didn't set up perl_init_i18nl14n for export
1328 From: Ilya Zakharevich
1329 Files patched: perl_exp.SH
1330 Applied suggested patch.
1332 NETaa15331: File::Path::rmtree followed symlinks
1333 From: Andreas Koenig
1334 Files patched: lib/File/Path.pm
1335 Added suggested patch, except I did
1337 if (not -l $root and -d _) {
1339 for efficiency, since if -d is true, the -l already called lstat on it.
1341 NETaa15339: sv_gets() didn't reset count
1342 From: alanburlison@unn.unisys.com
1344 Applied suggested patch.
1346 NETaa15341: differentiated importation of different types
1347 From: Chip Salzenberg
1348 Files patched: gv.c gv.h op.c perl.c pp.c pp_ctl.c sv.c sv.h toke.c
1349 Applied suggested patch.
1351 NETaa15342: Consistent handling of e_{fp,tmpname}
1352 From: Chip Salzenberg
1353 Files patched: perl.c pp_ctl.c util.c
1354 Applied suggested patch.
1356 NETaa15344: Safe gets confused about malloc on AIX
1358 Files patched: ext/Safe/Safe.xs
1359 Applied suggested patch.
1361 NETaa15348: -M upgrade
1363 Files patched: perl.c pod/perlrun.pod
1364 Applied suggested patch.
1366 NETaa15369: change in split optimization broke scalar context
1367 From: Ulrich Pfeifer
1369 The earlier patch to make the split optimization pay attention to
1370 OPpASSIGN_COMMON rearranged how the syntax tree is constructed, but kept
1371 the wrong context flags. This causes pp_split() do do the wrong thing.
1373 NETaa15423: can't do subversion numbering because of %5.3f assumptions
1374 From: Andy Dougherty
1375 Files patched: configpm patchlevel.h perl.c perl.h pp_ctl.c
1376 Removed the %5.3f assumptions where appropriate. patchlevel.h now
1377 defines SUBVERSION, which if greater than 0 indicates a development version.
1379 NETaa15424: Sigsetjmp patch
1380 From: Kenneth Albanowski
1381 Files patched: Configure config_h.SH op.c perl.c perl.h pp_ctl.c util.c
1382 Applied suggested patch.
1384 Needed to make install paths absolute.
1385 Files patched: installperl
1388 Files patched: utils/h2xs.PL
1390 makedir() looped on a symlink to a directory.
1391 Files patched: installperl
1394 Files patched: lib/ExtUtils/xsubpp
1400 Nearly all the changes for 5.001 were bug fixes of one variety or another,
1401 so here's the bug list, along with the "resolution" for each of them. If
1402 you wish to correspond about any of them, please include the bug number.
1404 There were a few that can be construed as enhancements:
1405 NETaa13059: now warns of use of \1 where $1 is necessary.
1406 NETaa13512: added $SIG{__WARN__} and $SIG{__DIE__} hooks
1407 NETaa13520: added closures
1408 NETaa13530: scalar keys now resets hash iterator
1409 NETaa13641: added Tim's fancy new import whizbangers
1410 NETaa13710: cryptswitch needed to be more "useable"
1411 NETaa13716: Carp now allows multiple packages to be skipped out of
1412 NETaa13716: now counts imported routines as "defined" for redef warnings
1413 (and, of course, much of the stuff from the perl5-porters)
1415 NETaa12974: README incorrectly said it was a pre-release.
1416 Files patched: README
1418 NETaa13033: goto pushed a bogus scope on the context stack.
1420 Files patched: pp_ctl.c
1421 The goto operator pushed an extra bogus scope onto the context stack. (This
1422 often didn't matter, since many things pop extra unrecognized scopes off.)
1424 NETaa13034: tried to get valid pointer from undef.
1426 Also: Achille Hui, the Day Dreamer
1428 Files patched: pp_sys.c
1429 Now treats undef specially, and calls SvPV_force on any non-numeric scalar
1430 value to get a real pointer to somewhere.
1432 NETaa13035: included package info with filehandles.
1433 From: Jack Shirazi - BIU
1434 Files patched: pp_hot.c pp_sys.c
1435 Now passes a glob to filehandle methods to keep the package info intact.
1437 NETaa13048: didn't give strict vars message on every occurrence.
1440 It now complains about every occurrence. (The bug resulted from an
1441 ill-conceived attempt to suppress a duplicate error message in a
1442 suboptimal fashion.)
1444 NETaa13052: test for numeric sort sub return value fooled by taint magic.
1445 From: Peter Jaspers-Fayer
1446 Files patched: pp_ctl.c sv.h
1447 The test to see if the sort sub return value was numeric looked at the
1448 public flags rather than the private flags of the SV, so taint magic
1449 hid that info from the sort.
1451 NETaa13053: forced a2p to use byacc
1452 From: Andy Dougherty
1453 Files patched: MANIFEST x2p/Makefile.SH x2p/a2p.c
1454 a2p.c is now pre-byacced and shipped with the kit.
1456 NETaa13055: misnamed constant in previous patch.
1457 From: Conrad Augustin
1458 Files patched: op.c op.h toke.c
1459 The tokener translates $[ to a constant, but with a special marking in case
1460 the constant gets assigned to or localized. Unfortunately, the marking
1461 was done with a combination of OPf_SPECIAL and OPf_MOD that was easily
1462 spoofed. There is now a private OPpCONST_ARYLEN flag for this purpose.
1464 NETaa13055: use of OPf_SPECIAL for $[ lvaluehood was too fragile.
1465 Files patched: op.c op.h toke.c
1468 NETaa13056: convert needs to throw away any number info on its list.
1469 From: Jack Shirazi - BIU
1471 The listiness of the argument list leaked out to the subroutine call because
1472 of how prepend_elem and append_elem reuse an existing list. The convert()
1473 routine just needs to discard any listiness it finds on its argument.
1475 NETaa13058: AUTOLOAD shouldn't assume size of @_ is meaningful.
1476 From: Florent Guillaume
1477 Files patched: ext/DB_File/DB_File.pm ext/Fcntl/Fcntl.pm ext/GDBM_File/GDBM_File.pm ext/Socket/Socket.pm h2xs.SH
1478 I just deleted the optimization, which is silly anyway since the eventual
1479 subroutine definition is cached.
1481 NETaa13059: now warns of use of \1 where $1 is necessary.
1482 From: Gustaf Neumann
1483 Files patched: toke.c
1486 Can't use \1 to mean $1 in expression at foo line 2
1488 along with an explanation in perldiag.
1490 NETaa13060: no longer warns on attempt to read <> operator's transition state.
1492 Files patched: pp_hot.c
1493 No longer warns on <> operator's transitional state.
1495 NETaa13140: warning said $ when @ would be more appropriate.
1496 From: David J. MacKenzie
1497 Files patched: op.c pod/perldiag.pod
1500 (Did you mean $ or @ instead of %?)
1502 and added more explanation to perldiag.
1504 NETaa13149: was reading freed memory to make incorrect error message.
1505 Files patched: pp_ctl.c
1506 It was reading freed memory to make an error message that would be
1507 incorrect in any event because it had the inner filename rather than
1510 NETaa13149: confess was sometimes less informative than croak
1512 Files patched: lib/Carp.pm
1515 NETaa13150: stderr needs to be STDERR in package
1517 Files patched: lib/File/CheckTree.pm
1518 Also fixed pl2pm to translate the filehandles to uppercase.
1520 NETaa13150: uppercases stdin, stdout and stderr
1521 Files patched: pl2pm
1524 NETaa13154: array assignment didn't notice package magic.
1525 From: Brian Reichert
1526 Files patched: pp_hot.c
1527 The list assignment operator looked for only set magic, but set magic is
1528 only on the elements of a magical hash, not on the hash as a whole. I made
1529 the operator look for any magic at all on the target array or hash.
1531 NETaa13155: &DB::DB left trash on the stack.
1533 Files patched: lib/perl5db.pl pp_ctl.c
1534 The call by pp_dbstate() to &DB::DB left trash on the stack. It now
1535 calls DB in list context, and DB returns ().
1537 NETaa13156: lexical variables didn't show up in debugger evals.
1540 The code that searched back up the context stack for the lexical scope
1541 outside the eval only partially took into consideration that there
1542 might be extra debugger subroutine frames that shouldn't be used, and
1543 ended up comparing the wrong statement sequence number to the range of
1544 valid sequence numbers for the scope of the lexical variable. (There
1545 was also a bug fixed in passing that caused the scope of lexical to go
1546 clear to the end of the subroutine even if it was within an inner block.)
1548 NETaa13157: any request for autoloaded DESTROY should create a null one.
1549 From: Tom Christiansen
1550 Files patched: lib/AutoLoader.pm
1551 If DESTROY.al is not located, it now creates sub DESTROY {} automatically.
1553 NETaa13158: now preserves $@ around destructors while leaving eval.
1555 Files patched: pp_ctl.c
1556 Applied supplied patch, except the whole second hunk can be replaced with
1558 sv_insert(errsv, 0, 0, message, strlen(message));
1560 NETaa13160: clarified behavior of split without arguments
1562 Files patched: pod/perlfunc.pod
1563 Clarified the behavior of split without arguments.
1565 NETaa13162: eval {} lost list/scalar context
1568 LEAVETRY didn't propagate number to ENTERTRY.
1570 NETaa13163: clarified documentation of foreach using my variable
1571 From: Tom Christiansen
1572 Files patched: pod/perlsyn.pod
1573 Explained that foreach using a lexical is still localized.
1575 NETaa13164: the dot detector for the end of formats was over-rambunctious.
1577 Files patched: toke.c
1578 The dot detector for the end of formats was over-rambunctious. It would
1579 pick up any dot that didn't have a space in front of it.
1581 NETaa13165: do {} while 1 never linked outer block into next chain.
1584 When the conditional of do {} while 1; was optimized away, it confused the
1585 postfix order construction so that the block that ordinarily sits around the
1586 whole loop was never executed. So when the loop tried to unstack between
1587 iterations, it got the wrong context, and blew away the lexical variables
1588 of the outer scope. Fixed it by introducing a NULL opcode that will be
1589 optimized away later.
1591 NETaa13167: coercion was looking at public bits rather than private bits.
1592 From: Randal L. Schwartz
1593 Also: Thomas Riechmann
1596 There were some bad ifdefs around the various varieties of set*id(). In
1597 addition, tainting was interacting badly with assignment to $> because
1598 sv_2iv() was examining SvPOK rather than SvPOKp, and so couldn't coerce
1599 a string uid to an integer one.
1601 NETaa13167: had some ifdefs wrong on set*id.
1602 Files patched: mg.c pp_hot.c
1605 NETaa13168: relaxed test for comparison of new and old fds
1606 From: Casper H.S. Dik
1607 Files patched: t/lib/posix.t
1608 I relaxed the comparison to just check that the new fd is greater.
1610 NETaa13169: autoincrement can corrupt scalar value state.
1612 Also: Tom Christiansen
1614 It assumed a PV didn't need to be upgraded to become an NV.
1616 NETaa13169: previous patch could leak a string pointer.
1620 NETaa13170: symbols missing from global.sym
1622 Files patched: global.sym
1623 Applied suggested patch.
1625 NETaa13171: \\ in <<'END' shouldn't reduce to \.
1626 From: Randal L. Schwartz
1627 Files patched: toke.c
1628 <<'END' needed to bypass ordinary single-quote processing.
1630 NETaa13172: 'use integer' turned off magical autoincrement.
1631 From: Erich Rickheit KSC
1632 Files patched: pp.c pp_hot.c
1633 The integer versions of the increment and decrement operators were trying too
1634 hard to be efficient.
1636 NETaa13172: deleted duplicate increment and decrement code
1637 Files patched: opcode.h opcode.pl pp.c
1640 NETaa13173: install should make shared libraries executable.
1641 From: Brian Grossman
1644 Files patched: installperl
1645 Now gives permission 555 to any file ending with extension specified by $dlext.
1647 NETaa13176: ck_rvconst didn't free the const it used up.
1650 I checked in many random memory leaks under this bug number, since it
1651 was an eval that brought many of them out.
1653 NETaa13176: didn't delete XRV for temp ref of destructor.
1657 NETaa13176: didn't delete op_pmshort in matching operators.
1661 NETaa13176: eval leaked the name of the eval.
1662 Files patched: scope.c
1665 NETaa13176: gp_free didn't free the format.
1669 NETaa13176: minor leaks in loop exits and constant subscript optimization.
1673 NETaa13176: plugged some duplicate struct allocation memory leaks.
1674 Files patched: perl.c
1677 NETaa13176: sv_clear of an FM didn't clear anything.
1681 NETaa13176: tr/// didn't mortalize its return value.
1685 NETaa13177: SCOPE optimization hid line number info
1686 From: David J. MacKenzie
1687 Also: Hallvard B Furuseth
1689 Every pass on the syntax tree has to keep track of the current statement.
1690 Unfortunately, the single-statement block was optimized into a single
1691 statement between the time the variable was parsed and the time the
1692 void code scan was done, so that pass didn't see the OP_NEXTSTATE
1693 operator, because it has been optimized to an OP_NULL.
1695 Fortunately, null operands remember what they were, so it was pretty easy
1696 to make it set the correct line number anyway.
1698 NETaa13178: some linux doesn't handle nm well
1700 Files patched: hints/linux.sh
1701 Applied supplied patch.
1703 NETaa13180: localized slice now pre-extends array
1706 A localized slice now pre-extends its array to avoid reallocation during
1707 the scope of the local.
1709 NETaa13181: m//g didn't keep track of whether previous match matched null.
1710 From: "philippe.verdret"
1711 Files patched: mg.h pp_hot.c
1712 A pattern isn't allowed to match a null string in the same place twice in
1713 a row. m//g wasn't keeping track of whether the previous match matched
1716 NETaa13182: now includes whitespace as a regexp metacharacter.
1718 Files patched: toke.c
1719 scan_const() now counts " \t\n\r\f\v" as metacharacters when scanning a pattern.
1721 NETaa13183: sv_setsv shouldn't try to clone an object.
1724 The sv_mortalcopy() done by the return in STORE called sv_setsv(),
1725 which cloned the object. sv_setsv() shouldn't be in the business of
1728 NETaa13184: bogus warning on quoted signal handler name removed.
1730 Files patched: toke.c
1731 Now doesn't complain unless the first non-whitespace character after the =
1732 is an alphabetic character.
1734 NETaa13186: now croaks on chop($')
1735 From: Casper H.S. Dik
1736 Files patched: doop.c
1737 Now croaks on chop($') and such.
1739 NETaa13187: "${foo::bar}" now counts as mere delimitation, not as a bareword.
1741 Files patched: toke.c
1742 "${foo::bar}" now counts as mere delimitation, not as a bareword inside a
1745 NETaa13188: for backward compatibility, looks for "perl -" before "perl".
1746 From: Russell Mosemann
1747 Files patched: toke.c
1748 Now allows non-whitespace characters on the #! line between the "perl"
1751 NETaa13188: now allows non-whitespace after #!...perl before switches.
1752 Files patched: toke.c
1755 NETaa13189: derivative files need to be removed before recreation
1757 Also: Dick Middleton
1758 Also: David J. MacKenzie
1759 Files patched: embed_h.sh x2p/Makefile.SH
1760 Fixed various little nits as suggested in several messages.
1762 NETaa13190: certain assignments can spoof pod directive recognizer
1763 From: Ilya Zakharevich
1764 Files patched: toke.c
1765 The lexer now only recognizes pod directives where a statement is expected.
1767 NETaa13194: now returns undef when there is no curpm.
1768 From: lusol@Dillon.CC.Lehigh.EDU
1770 Since there was no regexp prior to the "use", it was returning whatever the
1771 last successful match was within the "use", because there was no current
1772 regexp, so it treated it as a normal variable. It now returns undef.
1774 NETaa13195: semop had one S too many.
1775 From: Joachim Huober
1776 Files patched: opcode.pl
1777 The entry in opcode.pl had one too many S's.
1779 NETaa13196: always assumes it's a Perl script if -c is used.
1781 Files patched: toke.c
1782 It now will assume it's a Perl script if the -c switch is used.
1784 NETaa13197: changed implicit -> message to be more understandable.
1786 Files patched: op.c pod/perldiag.pod
1787 I changed the error message to be more understandable. It now says
1789 Can't use subscript on sort...
1792 NETaa13201: added OPpCONST_ENTERED flag to properly enter filehandle symbols.
1793 From: E. Jay Berkenbilt
1794 Also: Tom Christiansen
1795 Files patched: op.c op.h toke.c
1796 The grammatical reduction of a print statement didn't properly count
1797 the filehandle as a symbol reference because it couldn't distinguish
1798 between a symbol entered earlier in the program and a symbol entered
1799 for the first time down in the lexer.
1801 NETaa13203: README shouldn't mention uperl.o any more.
1803 Files patched: README
1805 NETaa13204: .= shouldn't warn on uninitialized target.
1807 Files patched: pp_hot.c
1808 No longer warns on uninitialized target of .= operator.
1810 NETaa13206: handy macros in XSUB.h
1812 Files patched: XSUB.h
1813 Added suggested macros.
1815 NETaa13228: commonality checker didn't treat lexicals as variables.
1816 From: mcook@cognex.com
1817 Files patched: op.c opcode.pl
1818 The list assignment operator tries to avoid unnecessary copies by doing the
1819 assignment directly if there are no common variables on either side of the
1820 equals. Unfortunately, the code that decided that only recognized references
1821 to dynamic variables, not lexical variables.
1823 NETaa13229: fixed sign stuff for complement, integer coercion.
1825 Files patched: perl.h pp.c sv.c
1826 Fixed ~0 and integer coercions.
1828 NETaa13230: no longer tries to reuse scratchpad temps if tainting in effect.
1831 I haven't reproduced it, but I believe the problem is the reuse of scratchpad
1832 temporaries between statements. I've made it not try to reuse them if
1833 tainting is in effect.
1835 NETaa13231: *foo = *bar now prevents typo warnings on "foo"
1838 Aliasing of the form *foo = *bar is now protected from the typo warnings.
1839 Previously only the *foo = \$bar form was.
1841 NETaa13235: require BAREWORD now introduces package name immediately.
1843 Files patched: toke.c
1844 require BAREWORD now introduces package name immediately. This lets the
1845 method intuit code work right even though the require hasn't actually run
1848 NETaa13289: didn't calculate correctly using arybase.
1850 Files patched: pp.c pp_hot.c
1851 The runtime code didn't use curcop->cop_arybase correctly.
1853 NETaa13301: store now throws exception on error
1854 From: Barry Friedman
1855 Files patched: ext/GDBM_File/GDBM_File.xs ext/NDBM_File/NDBM_File.xs ext/ODBM_File/ODBM_File.xs ext/SDBM_File/SDBM_File.xs
1856 Changed warn to croak in ext/*DBM_File/*.xs.
1858 NETaa13302: ctime now takes Time_t rather than Time_t*.
1859 From: Rodger Anderson
1860 Files patched: ext/POSIX/POSIX.xs
1861 Now declares a Time_t and takes the address of that in CODE.
1863 NETaa13302: shorter way to do this patch
1864 Files patched: ext/POSIX/POSIX.xs
1867 NETaa13304: could feed too large $@ back into croak, whereupon it croaked.
1869 Files patched: perl.c
1870 callist() could feed $@ back into croak with more than a bare %s. (croak()
1871 handles long strings with a bare %s okay.)
1873 NETaa13305: compiler misoptimized RHS to outside of s/a/print/e
1874 From: Brian S. Cashman <bsc@umich.edu>
1876 The syntax tree was being misconstructed because the compiler felt that
1877 the RHS was invariant, so it did it outside the s///.
1879 NETaa13314: assigning mortal to lexical leaks
1882 In stealing strings, sv_setsv was checking SvPOK to see if it should free
1883 the destination string. It should have been checking SvPVX.
1885 NETaa13316: wait4pid now recalled when errno == EINTR
1886 From: Robert J. Pankratz
1887 Files patched: pp_sys.c util.c
1888 system() and the close() of a piped open now recall wait4pid if it returned
1889 prematurely with errno == EINTR.
1891 NETaa13329: needed to localize taint magic
1893 Files patched: sv.c doio.c mg.c pp_hot.c pp_sys.c scope.c taint.c
1894 Taint magic is now localized better, though I had to resort to a kludge
1895 to allow a value to be both tainted and untainted simultaneously during
1900 when $_[0] is a reference to the variable $foo already.
1902 NETaa13341: clarified interaction of AnyDBM_File::ISA and "use"
1904 Files patched: pod/modpods/AnyDBMFile.pod
1905 The doc was misleading.
1907 NETaa13342: grep and map with block would enter block but never leave it.
1910 The compiler use some sort-checking code to handle the arguments of
1911 grep and map. Unfortunately, this wiped out the block exit opcode while
1912 leaving the block entry opcode. This doesn't matter to sort, but did
1913 matter to grep and map. It now leave the block entry intact.
1915 The reason it worked without the my is because the block entry and exit
1916 were optimized away to an OP_SCOPE, which it doesn't matter if it's there
1919 NETaa13343: goto needed to longjmp when in a signal handler.
1920 From: Robert Partington
1921 Files patched: pp_ctl.c
1922 goto needed to longjmp() when in a signal handler to get back into the
1923 right run() context.
1926 NETaa13344: strict vars shouldn't apply to globs or filehandles.
1929 Filehandles and globs will be excepted from "strict vars", so that you can
1930 do the standard Perl 4 trick of
1939 NETaa13345: assert.pl didn't use package DB
1941 Files patched: lib/assert.pl
1944 NETaa13348: av_undef didn't free scalar representing $#foo.
1947 av_undef didn't free scalar representing $#foo.
1949 NETaa13349: sort sub accumulated save stack entries
1951 Files patched: pp_ctl.c
1952 COMMON only gets set if assigning to @_, which is reasonable. Most of the
1953 problem was a memory leak.
1955 NETaa13351: didn't treat indirect filehandles as references.
1956 From: Andy Dougherty
1960 Can't use an undefined value as a symbol reference at ./foo line 3.
1963 NETaa13352: OP_SCOPE allocated as UNOP rather than LISTOP.
1964 From: Andy Dougherty
1967 NETaa13353: scope() didn't release filegv on OP_SCOPE optimization.
1970 When scope() nulled out a NEXTSTATE, it didn't release its filegv reference.
1972 NETaa13355: hv_delete now avoids useless mortalcopy
1974 Files patched: hv.c op.c pp.c pp_ctl.c proto.h scope.c util.c
1975 hv_delete now avoids useless mortalcopy.
1978 NETaa13359: comma operator section missing its heading
1980 Files patched: pod/perlop.pod
1982 NETaa13359: random typo
1983 Files patched: pod/perldiag.pod
1985 NETaa13360: code to handle partial vec values was bogus.
1986 From: Conrad Augustin
1988 The code that Mark J. added a long time ago to handle values that were partially
1989 off the end of the string was incorrect.
1991 NETaa13361: made it not interpolate inside regexp comments
1993 Files patched: toke.c
1994 To avoid surprising people, it no longer interpolates inside regexp
1997 NETaa13362: ${q[1]} should be interpreted like it used to
1999 Files patched: toke.c
2000 Now resolves ${keyword[1]} to $keyword[1] and warns if -w. Likewise for {}.
2002 NETaa13363: meaning of repeated search chars undocumented in tr///
2003 From: Stephen P. Potter
2004 Files patched: pod/perlop.pod
2005 Documented that repeated characters use the first translation given.
2007 NETaa13365: if closedir fails, don't try it again.
2008 From: Frank Crawford
2009 Files patched: pp_sys.c
2010 Now does not attempt to closedir a second time.
2012 NETaa13366: can't do block scope optimization on $1 et al when tainting.
2013 From: Andrew Vignaux
2014 Files patched: toke.c
2015 The tainting mechanism assumes that every statement starts out
2016 untainted. Unfortunately, the scope removal optimization for very
2017 short blocks removed the statementhood of statements that were
2018 attempting to read $1 as an untainted value, with the effect that $1
2019 appeared to be tainted anyway. The optimization is now disabled when
2020 tainting and the block contains $1 (or equivalent).
2022 NETaa13366: fixed this a better way in toke.c.
2026 NETaa13366: need to disable scope optimization when tainting.
2030 NETaa13367: Did a SvCUR_set without nulling out final char.
2031 From: "Rob Henderson" <robh@cs.indiana.edu>
2032 Files patched: doop.c pp.c pp_sys.c
2033 When do_vop set the length on its result string it neglected to null-terminate
2036 NETaa13368: bigrat::norm sometimes chucked sign
2037 From: Greg Kuperberg
2038 Files patched: lib/bigrat.pl
2039 The normalization routine was assuming that the gcd of two numbers was
2040 never negative, and based on that assumption managed to move the sign
2041 to the denominator, where it was deleted on the assumption that the
2042 denominator is always positive.
2044 NETaa13368: botched previous patch
2045 Files patched: lib/bigrat.pl
2048 NETaa13369: # is now a comment character, and \# should be left for regcomp.
2050 Files patched: toke.c
2051 It was not skipping the comment when it skipped the white space, and constructed
2052 an opcode that tried to match a null string. Unfortunately, the previous
2053 star tried to use the first character of the null string to optimize where
2054 to recurse, so it never matched.
2056 NETaa13369: comment after regexp quantifier induced non-match.
2057 Files patched: regcomp.c
2060 NETaa13370: some code assumed SvCUR was of type int.
2061 From: Spider Boardman
2062 Files patched: pp_sys.c
2063 Did something similar to the proposed patch. I also fixed the problem that
2064 it assumed the type of SvCUR was int. And fixed get{peer,sock}name the
2067 NETaa13375: sometimes dontbother wasn't added back into strend.
2068 From: Jamshid Afshar
2069 Files patched: regexec.c
2070 When the /g modifier was used, the regular expression code would calculate
2071 the end of $' too short by the minimum number of characters the pattern could
2074 NETaa13375: sv_setpvn now disallows negative length.
2078 NETaa13376: suspected indirect objecthood prevented recognition of lexical.
2079 From: Gisle.Aas@nr.no
2080 Files patched: toke.c
2081 When $data[0] is used in a spot that might be an indirect object, the lexer
2082 was getting confused over the rule that says the $data in $$data[0] isn't
2083 an array element. (The lexer uses XREF state for both indirect objects
2084 and for variables used as names.)
2086 NETaa13377: -I processesing ate remainder of #! line.
2087 From: Darrell Schiebel
2088 Files patched: perl.c
2089 I made the -I processing in moreswitches look for the end of the string,
2090 delimited by whitespace.
2092 NETaa13379: ${foo} now treated the same outside quotes as inside
2094 Files patched: toke.c
2095 ${bareword} is now treated the same outside quotes as inside.
2097 NETaa13379: previous fix for this bug was botched
2098 Files patched: toke.c
2101 NETaa13381: TEST should check for perl link
2102 From: Andy Dougherty
2103 Files patched: t/TEST
2104 die "You need to run \"make test\" first to set things up.\n" unless -e 'perl';
2107 NETaa13384: fixed version 0.000 botch.
2109 Files patched: installperl
2111 NETaa13385: return 0 from required file loses message
2112 From: Malcolm Beattie
2113 Files patched: pp_ctl.c
2116 NETaa13387: added pod2latex
2117 From: Taro KAWAGISHI
2118 Files patched: MANIFEST pod/pod2latex
2119 Added most recent copy to pod directory.
2121 NETaa13388: constant folding now prefers integer results over double
2122 From: Ilya Zakharevich
2124 Constant folding now prefers integer results over double.
2126 NETaa13389: now treats . and exec as shell metathingies
2128 Files patched: doio.c
2129 Now treats . and exec as shell metathingies.
2131 NETaa13395: eval didn't check taintedness.
2133 Files patched: pp_ctl.c
2135 NETaa13396: $^ coredumps at end of string
2137 Files patched: toke.c
2138 The scan_ident() didn't check for a null following $^.
2140 NETaa13397: improved error messages when operator expected
2142 Files patched: toke.c
2143 Added message (Do you need to predeclare BAR?). Also fixed the missing
2146 NETaa13399: cleanup by Andy
2148 Files patched: Changes Configure Makefile.SH README cflags.SH config.H config_h.SH deb.c doop.c dump.c ext/DB_File/DB_File.pm ext/DB_File/DB_File.xs ext/DynaLoader/DynaLoader.pm ext/Fcntl/Fcntl.pm ext/GDBM_File/GDBM_File.pm ext/POSIX/POSIX.pm ext/SDBM_File/sdbm/sdbm.h ext/Socket/Socket.pm ext/util/make_ext h2xs.SH hints/aix.sh hints/bsd386.sh hints/dec_osf.sh hints/esix4.sh hints/freebsd.sh hints/irix_5.sh hints/next_3_2.sh hints/sunos_4_1.sh hints/svr4.sh hints/ultrix_4.sh installperl lib/AutoSplit.pm lib/Cwd.pm lib/ExtUtils/MakeMaker.pm lib/ExtUtils/xsubpp lib/Term/Cap.pm mg.c miniperlmain.c perl.c perl.h perl_exp.SH pod/Makefile pod/perldiag.pod pod/pod2html pp.c pp_ctl.c pp_hot.c pp_sys.c proto.h sv.h t/re_tests util.c x2p/Makefile.SH x2p/a2p.h x2p/a2py.c x2p/handy.h x2p/hash.c x2p/hash.h x2p/str.c x2p/str.h x2p/util.c x2p/util.h x2p/walk.c
2150 NETaa13399: cleanup from Andy
2151 Files patched: MANIFEST
2153 NETaa13399: configuration cleanup
2154 Files patched: Configure Configure MANIFEST MANIFEST Makefile.SH Makefile.SH README config.H config.H config_h.SH config_h.SH configpm ext/DynaLoader/DynaLoader.pm ext/DynaLoader/dl_hpux.xs ext/NDBM_File/Makefile.PL ext/ODBM_File/Makefile.PL ext/util/make_ext handy.h hints/aix.sh hints/hpux_9.sh hints/hpux_9.sh hints/irix_4.sh hints/linux.sh hints/mpeix.sh hints/next_3_2.sh hints/solaris_2.sh hints/svr4.sh installperl installperl lib/AutoSplit.pm lib/ExtUtils/MakeMaker.pm lib/ExtUtils/MakeMaker.pm lib/ExtUtils/xsubpp lib/Getopt/Long.pm lib/Text/Tabs.pm makedepend.SH makedepend.SH mg.c op.c perl.h perl_exp.SH pod/perl.pod pod/perldiag.pod pod/perlsyn.pod pod/pod2man pp_sys.c proto.h proto.h unixish.h util.c util.c vms/config.vms writemain.SH x2p/a2p.h x2p/a2p.h x2p/a2py.c x2p/a2py.c x2p/handy.h x2p/util.c x2p/walk.c x2p/walk.c
2156 NETaa13399: new files from Andy
2157 Files patched: ext/DB_File/Makefile.PL ext/DynaLoader/Makefile.PL ext/Fcntl/Makefile.PL ext/GDBM_File/Makefile.PL ext/NDBM_File/Makefile.PL ext/ODBM_File/Makefile.PL ext/POSIX/Makefile.PL ext/SDBM_File/Makefile.PL ext/SDBM_File/sdbm/Makefile.PL ext/Socket/Makefile.PL globals.c hints/convexos.sh hints/irix_6.sh
2159 NETaa13399: patch0l from Andy
2160 Files patched: Configure MANIFEST Makefile.SH config.H config_h.SH ext/DB_File/Makefile.PL ext/GDBM_File/Makefile.PL ext/NDBM_File/Makefile.PL ext/POSIX/POSIX.xs ext/SDBM_File/sdbm/Makefile.PL ext/util/make_ext h2xs.SH hints/next_3_2.sh hints/solaris_2.sh hints/unicos.sh installperl lib/Cwd.pm lib/ExtUtils/MakeMaker.pm makeaperl.SH vms/config.vms x2p/util.c x2p/util.h
2162 NETaa13399: stuff from Andy
2163 Files patched: Configure MANIFEST Makefile.SH configpm hints/dec_osf.sh hints/linux.sh hints/machten.sh lib/ExtUtils/MakeMaker.pm util.c
2165 NETaa13399: Patch 0k from Andy
2166 Files patched: Configure MANIFEST Makefile.SH config.H config_h.SH hints/dec_osf.sh hints/mpeix.sh hints/next_3_0.sh hints/ultrix_4.sh installperl lib/ExtUtils/MakeMaker.pm lib/File/Path.pm makeaperl.SH minimod.PL perl.c proto.h vms/config.vms vms/ext/MM_VMS.pm x2p/a2p.h
2168 NETaa13399: Patch 0m from Andy
2169 Files patched: Configure MANIFEST Makefile.SH README config.H config_h.SH ext/DynaLoader/README ext/POSIX/POSIX.xs ext/SDBM_File/sdbm/sdbm.h ext/util/extliblist hints/cxux.sh hints/linux.sh hints/powerunix.sh lib/ExtUtils/MakeMaker.pm malloc.c perl.h pp_sys.c util.c
2171 NETaa13400: pod2html update from Bill Middleton
2173 Files patched: pod/pod2html
2175 NETaa13401: Boyer-Moore code attempts to compile string longer than 255.
2176 From: Kyriakos Georgiou
2177 Files patched: util.c
2178 The Boyer-Moore table uses unsigned char offsets, but the BM compiler wasn't
2179 rejecting strings longer than 255 chars, and was miscompiling them.
2181 NETaa13403: missing a $ on variable name
2183 Files patched: installperl
2184 Yup, it was missing.
2186 NETaa13406: didn't wipe out dead match when proceeding to next BRANCH
2187 From: Michael P. Clemens
2188 Files patched: regexec.c
2189 The code to check alternatives didn't invalidate backreferences matched by the
2192 NETaa13407: overload upgrade
2193 From: owner-perl5-porters@nicoh.com
2194 Also: Ilya Zakharevich
2195 Files patched: MANIFEST gv.c lib/Math/BigInt.pm perl.h pod/perlovl.pod pp.c pp.h pp_hot.c sv.c t/lib/bigintpm.t t/op/overload.t
2196 Applied supplied patch, and fixed bug induced by use of sv_setsv to do
2197 a deep copy, since sv_setsv no longer copies objecthood.
2199 NETaa13409: sv_gets tries to grow string at EOF
2200 From: Harold O Morris
2202 Applied suggested patch, only two statements earlier, since the end code
2203 also does SvCUR_set.
2205 NETaa13410: delaymagic did =~ instead of &= ~
2206 From: Andreas Schwab
2207 Files patched: pp_hot.c
2208 Applied supplied patch.
2210 NETaa13411: POSIX didn't compile under -DLEAKTEST
2211 From: Frederic Chauveau
2212 Files patched: ext/POSIX/POSIX.xs
2213 Used NEWSV instead of newSV.
2215 NETaa13412: new version from Tony Sanders
2217 Files patched: lib/Term/Cap.pm
2218 Installed as Term::Cap.pm
2220 NETaa13413: regmust extractor needed to restart loop on BRANCH for (?:) to work
2222 Files patched: regcomp.c
2223 The BRANCH skipper should have restarted the loop from the top.
2225 NETaa13414: the check for accidental list context was done after pm_short check
2226 From: Michael H. Coen
2227 Files patched: pp_hot.c
2228 Moved check for accidental list context to before the pm_short optimization.
2230 NETaa13418: perlre.pod babbled nonsense about | in character classes
2232 Files patched: pod/perlre.pod
2233 Removed bogus brackets. Now reads:
2234 Note however that "|" is interpreted as a literal with square brackets,
2235 so if you write C<[fee|fie|foe]> you're really only matching C<[feio|]>.
2237 NETaa13419: need to document introduction of lexical variables
2238 From: "Heading, Anthony"
2239 Files patched: pod/perlfunc.pod
2240 Now mentions that lexicals aren't introduced till after the current statement.
2242 NETaa13420: formats that overflowed a page caused endless top of forms
2243 From: Hildo@CONSUL.NL
2244 Files patched: pp_sys.c
2245 If a record is too large to fit on a page, it now prints whatever will
2246 fit and then calls top of form again on the remainder.
2248 NETaa13423: the code to do negative list subscript in scalar context was missing
2249 From: Steve McDougall
2251 The negative subscript code worked right in list context but not in scalar
2252 context. In fact, there wasn't code to do it in the scalar context.
2254 NETaa13424: existing but undefined CV blocked inheritance
2255 From: Spider Boardman
2257 Applied supplied patch.
2259 NETaa13425: removed extra argument to croak
2260 From: "R. Bernstein"
2261 Files patched: regcomp.c
2262 Removed extra argument.
2264 NETaa13427: added return types
2265 From: "R. Bernstein"
2266 Files patched: x2p/a2py.c
2267 Applied suggested patch.
2269 NETaa13427: added static declarations
2270 Files patched: x2p/walk.c
2273 NETaa13428: split was assuming that all backreferences were defined
2274 From: Dave Schweisguth
2276 split was assuming that all backreferences were defined.
2278 NETaa13430: hoistmust wasn't hoisting anchored shortcircuit's length
2279 From: Tom Christiansen
2281 Files patched: toke.c
2283 NETaa13432: couldn't call code ref under debugger
2285 Files patched: op.c pp_hot.c sv.h
2286 The debugging code assumed it could remember a name to represent a subroutine,
2287 but anonymous subroutines don't have a name. It now remembers a CV reference
2290 NETaa13435: 1' dumped core
2292 Files patched: toke.c
2293 Didn't check a pointer for nullness.
2295 NETaa13436: print foo(123) didn't treat foo as subroutine
2296 From: mcook@cognex.com
2297 Files patched: toke.c
2298 Now treats it as a subroutine rather than a filehandle.
2300 NETaa13437: &$::foo didn't think $::foo was a variable name
2301 From: mcook@cognex.com
2302 Files patched: toke.c
2303 Now treats $::foo as a global variable.
2305 NETaa13439: referred to old package name
2306 From: Tom Christiansen
2307 Files patched: lib/Sys/Syslog.pm
2308 Wasn't a strict refs problem after all. It was simply referring to package
2309 syslog, which had been renamed to Sys::Syslog.
2311 NETaa13440: stat operations didn't know what to do with glob or ref to glob
2312 From: mcook@cognex.com
2313 Files patched: doio.c pp_sys.c
2314 Now knows about the kinds of filehandles returned by FileHandle constructors
2317 NETaa13442: couldn't find name of copy of deleted symbol table entry
2318 From: Spider Boardman
2319 Files patched: gv.c gv.h
2320 I did a much simpler fix. When gp_free notices that it's freeing the
2321 master GV, it nulls out gp_egv. The GvENAME and GvESTASH macros know
2322 to revert to gv if egv is null.
2324 This has the advantage of not creating a reference loop.
2326 NETaa13443: couldn't override an XSUB
2327 From: William Setzer
2329 When the newSUB and newXS routines checked for whether the old sub was
2330 defined, they only looked at CvROOT(cv), not CvXSUB(cv).
2332 NETaa13443: needed to do same thing in newXS
2336 NETaa13444: -foo now doesn't warn unless sub foo is defined
2338 Files patched: toke.c
2339 Made it not warn on -foo, unless there is a sub foo defined.
2341 NETaa13451: in scalar context, pp_entersub now guarantees one item from XSUB
2342 From: Nick Gianniotis
2343 Files patched: pp_hot.c
2344 The pp_entersub routine now guarantees that an XSUB in scalar context
2345 returns one and only one value. If there are fewer, it pushes undef,
2346 and if there are more, it returns the last one.
2348 NETaa13457: now explicitly disallows printf format with 'n' or '*'.
2349 From: lees@cps.msu.edu
2350 Files patched: doop.c
2353 Use of n in printf format not supported at ./foo line 3.
2356 NETaa13458: needed to call SvPOK_only() in pp_substr
2359 Needed to call SvPOK_only() in pp_substr.
2361 NETaa13459: umask and chmod now warn about missing initial 0 even with paren
2362 From: Andreas Koenig
2363 Files patched: toke.c
2364 Now skips parens as well as whitespace looking for argument.
2366 NETaa13460: backtracking didn't work on .*? because reginput got clobbered
2367 From: Andreas Koenig
2368 Files patched: regexec.c
2369 When .*? did a probe of the rest of the string, it clobbered reginput,
2370 so the next call to match a . tried to match the newline and failed.
2372 NETaa13475: \(@ary) now treats array as list of scalars
2375 The mod() routine now refrains from marking @ary as an lvalue if it's in parens
2376 and is the subject of an OP_REFGEN.
2378 NETaa13481: accept buffer wasn't aligned good enough
2379 From: Holger Bechtold
2380 Also: Christian Murphy
2381 Files patched: pp_sys.c
2382 Applied suggested patch.
2384 NETaa13486: while (<>) now means while (defined($_ = <>))
2386 Files patched: op.c pod/perlop.pod
2387 while (<HANDLE>) now means while (defined($_ = <HANDLE>)).
2389 NETaa13500: needed DESTROY in FileHandle
2391 Files patched: ext/POSIX/POSIX.pm
2392 Added DESTROY method. Also fixed ungensym to use POSIX:: instead of _POSIX.
2393 Removed ungensym from close method, since DESTROY should do that now.
2395 NETaa13502: now complains if you use local on a lexical variable
2398 Now says something like
2400 Can't localize lexical variable $var at ./try line 6.
2402 NETaa13512: added $SIG{__WARN__} and $SIG{__DIE__} hooks
2404 Files patched: embed.h gv.c interp.sym mg.c perl.h pod/perlvar.pod pp_ctl.c util.c Todo pod/perldiag.pod
2406 NETaa13514: statements before intro of lex var could see lex var
2407 From: William Setzer
2409 When a lexical variable is declared, introduction is delayed until
2410 the start of the next statement, so that any initialization code runs
2411 outside the scope of the new variable. Thus,
2417 should print 3. Unfortunately, the declaration was marked with the
2418 beginning location at the time that "my $y" was processed instead of
2419 when the variable was introduced, so any embedded statements within
2420 an anonymous subroutine picked up the wrong "my". The declaration
2421 is now labelled correctly when the variable is actually introduced.
2423 NETaa13520: added closures
2425 Files patched: Todo cv.h embed.h global.sym gv.c interp.sym op.c perl.c perl.h pod/perlform.pod pp.c pp_ctl.c pp_hot.c sv.c sv.h toke.c
2427 NETaa13520: test to see if lexical works in a format now
2428 Files patched: t/op/write.t
2430 NETaa13522: substitution couldn't be used on a substr()
2432 Files patched: pp_ctl.c pp_hot.c
2433 Changed pp_subst not to use sv_replace() anymore, which didn't handle lvalues
2434 and was overkill anyway. Should be slightly faster this way too.
2436 NETaa13525: G_EVAL mode in perl_call_sv didn't return values right.
2437 Files patched: perl.c
2439 NETaa13525: consolidated error message
2441 Files patched: perl.h toke.c
2443 NETaa13525: derived it
2444 Files patched: perly.h
2446 NETaa13525: missing some values from embed.h
2447 Files patched: embed.h
2449 NETaa13525: random cleanup
2450 Files patched: MANIFEST Todo cop.h lib/TieHash.pm lib/perl5db.pl opcode.h patchlevel.h pod/perldata.pod pod/perlsub.pod t/op/ref.t toke.c
2452 NETaa13525: random cleanup
2453 Files patched: pp_ctl.c util.c
2455 NETaa13527: File::Find needed to export $name and $dir
2457 Files patched: lib/File/Find.pm
2458 They are now exported.
2460 NETaa13528: cv_undef left unaccounted-for GV pointer in CV
2462 Also: Spider Boardman
2465 NETaa13530: scalar keys now resets hash iterator
2467 Files patched: doop.c
2468 scalar keys() now resets the hash iterator.
2470 NETaa13531: h2ph doesn't check defined right
2471 From: Casper H.S. Dik
2472 Files patched: h2ph.SH
2474 NETaa13540: VMS update
2476 Files patched: MANIFEST README.vms doio.c embed.h ext/DynaLoader/dl_vms.xs interp.sym lib/Cwd.pm lib/ExtUtils/xsubpp lib/File/Basename.pm lib/File/Find.pm lib/File/Path.pm mg.c miniperlmain.c perl.c perl.h perly.c perly.c.diff pod/perldiag.pod pp_ctl.c pp_hot.c pp_sys.c proto.h util.c vms/Makefile vms/config.vms vms/descrip.mms vms/ext/Filespec.pm vms/ext/MM_VMS.pm vms/ext/VMS/stdio/Makefile.PL vms/ext/VMS/stdio/stdio.pm vms/ext/VMS/stdio/stdio.xs vms/genconfig.pl vms/perlvms.pod vms/sockadapt.c vms/sockadapt.h vms/vms.c vms/vmsish.h vms/writemain.pl
2478 NETaa13540: got some duplicate code
2479 Files patched: lib/File/Path.pm
2481 NETaa13540: stuff from Charles
2482 Files patched: MANIFEST README.vms lib/ExtUtils/MakeMaker.pm lib/ExtUtils/MakeMaker.pm lib/ExtUtils/xsubpp lib/File/Basename.pm lib/File/Path.pm perl.c perl.h pod/perldiag.pod pod/perldiag.pod vms/Makefile vms/Makefile vms/config.vms vms/config.vms vms/descrip.mms vms/descrip.mms vms/ext/Filespec.pm vms/ext/Filespec.pm vms/ext/MM_VMS.pm vms/ext/MM_VMS.pm vms/ext/VMS/stdio/stdio.pm vms/ext/VMS/stdio/stdio.xs vms/gen_shrfls.pl vms/gen_shrfls.pl vms/genconfig.pl vms/genconfig.pl vms/mms2make.pl vms/perlvms.pod vms/sockadapt.h vms/test.com vms/vms.c vms/vms.c vms/vmsish.h vms/vmsish.h vms/writemain.pl
2484 NETaa13540: tweak from Charles
2485 Files patched: lib/File/Path.pm
2487 NETaa13552: scalar unpack("P4",...) ignored the 4
2490 The optimization that tried to do only one item in a scalar context didn't
2491 realize that the argument to P was not a repeat count.
2493 NETaa13553: now warns about 8 or 9 in octal escapes
2495 Files patched: util.c
2496 Now warns if it finds 8 or 9 before the end of the octal escape sequence.
2497 So \039 produces a warning, but \0339 does not.
2499 NETaa13554: now allows foreach ${"name"}
2502 Instead of trying to remove OP_RV2SV, the compiler now just transmutes it into an
2503 OP_RV2GV, which is a no-op for ordinary variables and does the right
2504 thing for ${"name"}.
2506 NETaa13559: substitution now always checks for readonly
2507 From: Rodger Anderson
2508 Files patched: pp_hot.c
2509 Substitution now always checks for readonly.
2511 NETaa13561: added explanations of closures and curly-quotes
2513 Files patched: pod/perlref.pod
2515 NETaa13562: null components in path cause indigestion
2516 From: Ambrose Kofi Laing
2517 Files patched: lib/Cwd.pm lib/pwd.pl
2519 NETaa13575: documented semantics of negative substr length
2521 Files patched: pod/perlfunc.pod
2522 Documented the fact that negative length now leaves characters off the end,
2523 and while I was at it, made it work right even if offset wasn't 0.
2525 NETaa13575: negative length to substr didn't work when offset non-zero
2529 NETaa13575: random cleanup
2530 Files patched: pod/perlfunc.pod
2533 NETaa13580: couldn't localize $ACCUMULATOR
2535 Files patched: gv.c lib/English.pm mg.c perl.c sv.c
2536 Needed to make $^A a real magical variable. Also lib/English.pm wasn't
2539 NETaa13583: doc mods from Tom
2541 Files patched: pod/modpods/AnyDBMFile.pod pod/modpods/Basename.pod pod/modpods/Benchmark.pod pod/modpods/Cwd.pod pod/modpods/Dynaloader.pod pod/modpods/Exporter.pod pod/modpods/Find.pod pod/modpods/Finddepth.pod pod/modpods/Getopt.pod pod/modpods/MakeMaker.pod pod/modpods/Open2.pod pod/modpods/POSIX.pod pod/modpods/Ping.pod pod/modpods/less.pod pod/modpods/strict.pod pod/perlapi.pod pod/perlbook.pod pod/perldata.pod pod/perlform.pod pod/perlfunc.pod pod/perlipc.pod pod/perlmod.pod pod/perlobj.pod pod/perlref.pod pod/perlrun.pod pod/perlsec.pod pod/perlsub.pod pod/perltrap.pod pod/perlvar.pod
2543 NETaa13589: return was enforcing list context on its arguments
2545 Files patched: opcode.pl
2546 A return was being treated like a normal list operator, in that it was
2547 setting list context on its arguments. This was bogus.
2549 NETaa13591: POSIX::creat used wrong argument
2551 Files patched: ext/POSIX/POSIX.pm
2552 Applied suggested patch.
2554 NETaa13605: use strict refs error message now displays bad ref
2556 Files patched: perl.h pod/perldiag.pod pp.c pp_hot.c
2559 Can't use string ("2") as a HASH ref while "strict refs" in use at ./foo line 12.
2561 NETaa13630: eof docs were unclear
2562 From: Hallvard B Furuseth
2563 Files patched: pod/perlfunc.pod
2564 Applied suggested patch.
2566 NETaa13636: $< and $> weren't refetched on undump restart
2567 From: Steve Pearlmutter
2568 Files patched: perl.c
2569 The code in main() bypassed perl_construct on an undump restart, which bypassed
2570 the code that set $< and $>.
2572 NETaa13641: added Tim's fancy new import whizbangers
2574 Files patched: lib/Exporter.pm
2575 Applied suggested patch.
2577 NETaa13649: couldn't AUTOLOAD a symbol reference
2579 Files patched: pp_hot.c
2580 pp_entersub needed to guarantee a CV so it would get to the AUTOLOAD code.
2582 NETaa13651: renamed file had wrong package name
2583 From: Andreas Koenig
2584 Files patched: lib/File/Path.pm
2585 Applied suggested patch.
2587 NETaa13660: now that we're testing distribution we can diagnose RANDBITS errors
2588 From: Karl Glazebrook
2589 Files patched: t/op/rand.t
2590 Changed to suggested algorithm. Also duplicated it to test rand(100) too.
2592 NETaa13660: rand.t didn't test for proper distribution within range
2593 Files patched: t/op/rand.t
2596 NETaa13671: array slice misbehaved in a scalar context
2599 A spurious else prevented the scalar-context-handling code from running.
2601 NETaa13672: filehandle constructors in POSIX don't return failure successfully
2603 Files patched: ext/POSIX/POSIX.pm
2604 Applied suggested patch.
2607 NETaa13678: forced $1 to always be untainted
2610 I believe the bug that triggered this was fixed elsewhere, but just in case,
2611 I put in explicit code to force $1 et al not to be tainted regardless.
2613 NETaa13682: formline doc need to discuss ~ and ~~ policy
2615 Files patched: pod/perlfunc.pod
2617 NETaa13686: POSIX::open and POSIX::mkfifo didn't check tainting
2619 Files patched: ext/POSIX/POSIX.xs
2620 open() and mkfifo() now check tainting.
2622 NETaa13687: new Exporter.pm
2624 Files patched: lib/Exporter.pm
2625 Added suggested changes, except for @EXPORTABLE, because it looks too much
2626 like @EXPORTTABLE. Decided to stick with @EXPORT_OK because it looks more
2627 like an adjunct. Also added an export_tags routine. The keys in the
2628 %EXPORT_TAGS hash no longer use colons, to make the initializers prettier.
2630 NETaa13687: new Exporter.pm
2631 Files patched: ext/POSIX/POSIX.pm
2634 NETaa13694: add sockaddr_in to Socket.pm
2636 Files patched: ext/Socket/Socket.pm
2637 Applied suggested patch.
2639 NETaa13695: library routines should use qw() as good example
2641 Files patched: ext/DB_File/DB_File.pm ext/DynaLoader/DynaLoader.pm ext/Fcntl/Fcntl.pm ext/GDBM_File/GDBM_File.pm ext/POSIX/POSIX.pm ext/Socket/Socket.pm
2642 Applied suggested patch.
2644 NETaa13696: myconfig should be a routine in Config.pm
2645 From: Kenneth Albanowski
2646 Files patched: configpm
2647 Applied suggested patch.
2649 NETaa13704: fdopen closed fd on failure
2650 From: Hallvard B Furuseth
2651 Files patched: doio.c
2652 Applied suggested patch.
2654 NETaa13706: Term::Cap doesn't work
2656 Files patched: lib/Term/Cap.pm
2657 Applied suggested patch.
2659 NETaa13710: cryptswitch needed to be more "useable"
2661 Files patched: embed.h global.sym perl.h toke.c
2662 The cryptswitch_fp function now can operate in two modes. It can
2663 modify the global rsfp to redirect input as before, or it can modify
2664 linestr and return true, indicating that it is not necessary for yylex
2665 to read another line since cryptswitch_fp has just done it.
2667 NETaa13712: new_tmpfile() can't be called as constructor
2669 Files patched: ext/POSIX/POSIX.xs
2670 Now allows new_tmpfile() to be called as a constructor.
2672 NETaa13714: variable method call not documented
2673 From: "Randal L. Schwartz"
2674 Files patched: pod/perlobj.pod
2675 Now indicates that OBJECT->$method() works.
2677 NETaa13715: PACK->$method produces spurious warning
2679 Files patched: toke.c
2680 The -> operator was telling the lexer to expect an operator when the
2681 next thing was a variable.
2683 NETaa13716: Carp now allows multiple packages to be skipped out of
2685 Files patched: lib/Carp.pm
2686 The subroutine redefinition warnings now warn on import collisions.
2688 NETaa13716: Exporter catches warnings and gives a better line number
2689 Files patched: lib/Exporter.pm
2692 NETaa13716: now counts imported routines as "defined" for redef warnings
2693 Files patched: op.c sv.c
2702 The -w switch is much more informative.
2704 References. See t/op/ref.t for examples. All entities in Perl 5 are
2705 reference counted so that it knows when each item should be destroyed.
2707 Objects. See t/op/ref.t for examples.
2709 => is now a synonym for comma. This is useful as documentation for
2710 arguments that come in pairs, such as initializers for associative arrays,
2711 or named arguments to a subroutine.
2713 All functions have been turned into list operators or unary operators,
2714 meaning the parens are optional. Even subroutines may be called as
2715 list operators if they've already been declared.
2717 More embeddible. See main.c and embed_h.sh. Multiple interpreters
2718 in the same process are supported (though not with interleaved
2721 The interpreter is now flattened out. Compare Perl 4's eval.c with
2722 the perl 5's pp.c. Compare Perl 4's 900 line interpreter loop in cmd.c
2723 with Perl 5's 1 line interpreter loop in run.c. Eventually we'll make
2724 everything non-blocking so we can interface nicely with a scheduler.
2726 eval is now treated more like a subroutine call. Among other things,
2727 this means you can return from it.
2729 Format value lists may be spread over multiple lines by enclosing in
2732 You may now define BEGIN and END subroutines for each package. The BEGIN
2733 subroutine executes the moment it's parsed. The END subroutine executes
2734 just before exiting.
2736 Flags on the #! line are interpreted even if the script wasn't
2737 executed directly. (And even if the script was located by "perl -x"!)
2739 The ?: operator is now legal as an lvalue.
2741 List context now propagates to the right side of && and ||, as well
2742 as the 2nd and 3rd arguments to ?:.
2744 The "defined" function can now take a general expression.
2746 Lexical scoping available via "my". eval can see the current lexical
2749 The preferred package delimiter is now :: rather than '.
2751 tie/untie are now preferred to dbmopen/dbmclose. Multiple DBM
2752 implementations are allowed in the same executable, so you can
2753 write scripts to interchange data among different formats.
2755 New "and" and "or" operators work just like && and || but with
2756 a precedence lower than comma, so they work better with list operators.
2758 New functions include: abs(), chr(), uc(), ucfirst(), lc(), lcfirst(),
2761 require with a number checks to see that the version of Perl that is
2762 currently running is at least that number.
2764 Dynamic loading of external modules is now supported.
2766 There is a new quote form qw//, which is equivalent to split(' ', q//).
2768 Assignment of a reference to a glob value now just replaces the
2769 single element of the glob corresponding to the reference type:
2770 *foo = \$bar, *foo = \&bletch;
2772 Filehandle methods are now supported:
2773 output_autoflush STDOUT 1;
2775 There is now an "English" module that provides human readable translations
2776 for cryptic variable names.
2778 Autoload stubs can now call the replacement subroutine with goto &realsub.
2780 Subroutines can be defined lazily in any package by declaring an AUTOLOAD
2781 routine, which will be called if a non-existent subroutine is called in
2784 Several previously added features have been subsumed under the new
2785 keywords "use" and "no". Saying "use Module LIST" is short for
2786 BEGIN { require Module; import Module LIST; }
2787 The "no" keyword is identical except that it calls "unimport" instead.
2788 The earlier pragma mechanism now uses this mechanism, and two new
2789 modules have been added to the library to implement "use integer"
2790 and variations of "use strict vars, refs, subs".
2792 Variables may now be interpolated literally into a pattern by prefixing
2793 them with \Q, which works just like \U, but backwhacks non-alphanumerics
2794 instead. There is also a corresponding quotemeta function.
2796 Any quantifier in a regular expression may now be followed by a ? to
2797 indicate that the pattern is supposed to match as little as possible.
2799 Pattern matches may now be followed by an m or s modifier to explicitly
2800 request multiline or singleline semantics. An s modifier makes . match
2803 Patterns may now contain \A to match only at the beginning of the string,
2804 and \Z to match only at the end. These differ from ^ and $ in that
2805 they ignore multiline semantics. In addition, \G matches where the
2806 last interation of m//g or s///g left off.
2808 Non-backreference-producing parens of various sorts may now be
2809 indicated by placing a ? directly after the opening parenthesis,
2810 followed by a character that indicates the purpose of the parens.
2811 An :, for instance, indicates simple grouping. (?:a|b|c) will
2812 match any of a, b or c without producing a backreference. It does
2813 "eat" the input. There are also assertions which do not eat the
2814 input but do lookahead for you. (?=stuff) indicates that the next
2815 thing must be "stuff". (?!nonsense) indicates that the next thing
2816 must not be "nonsense".
2818 The negation operator now treats non-numeric strings specially.
2819 A -"text" is turned into "-text", so that -bareword is the same
2820 as "-bareword". If the string already begins with a + or -, it
2821 is flipped to the other sign.
2825 @ now always interpolates an array in double-quotish strings. Some programs
2826 may now need to use backslash to protect any @ that shouldn't interpolate.
2828 Ordinary variables starting with underscore are no longer forced into
2831 s'$lhs'$rhs' now does no interpolation on either side. It used to
2832 interplolate $lhs but not $rhs.
2834 The second and third arguments of splice are now evaluated in scalar
2835 context (like the book says) rather than list context.
2837 Saying "shift @foo + 20" is now a semantic error because of precedence.
2839 "open FOO || die" is now incorrect. You need parens around the filehandle.
2841 The elements of argument lists for formats are now evaluated in list
2842 context. This means you can interpolate list values now.
2844 You can't do a goto into a block that is optimized away. Darn.
2846 It is no longer syntactically legal to use whitespace as the name
2847 of a variable, or as a delimiter for any kind of quote construct.
2849 Some error messages will be different.
2851 The caller function now returns a false value in a scalar context if there
2852 is no caller. This lets library files determine if they're being required.
2854 m//g now attaches its state to the searched string rather than the
2857 "reverse" is no longer allowed as the name of a sort subroutine.
2859 taintperl is no longer a separate executable. There is now a -T
2860 switch to turn on tainting when it isn't turned on automatically.
2862 Symbols starting with _ are no longer forced into package main, except
2863 for $_ itself (and @_, etc.).
2865 Double-quoted strings may no longer end with an unescaped $ or @.
2867 Negative array subscripts now count from the end of the array.
2869 The comma operator in a scalar context is now guaranteed to give a
2870 scalar context to its arguments.
2872 The ** operator now binds more tightly than unary minus.
2874 Setting $#array lower now discards array elements so that destructors
2877 delete is not guaranteed to return the old value for tied arrays,
2878 since this capability may be onerous for some modules to implement.
2880 Attempts to set $1 through $9 now result in a run-time error.