From a60067777be62ee91d1318f9ae26d9ed713245de Mon Sep 17 00:00:00 2001 From: Perl 5 Porters Date: Wed, 1 Jan 1997 08:59:00 +1200 Subject: [inseparable changes from patch from perl5.003_17 to perl5.003_18] CORE LANGUAGE CHANGES Subject: Inherited overloading Date: Sun, 29 Dec 1996 08:12:54 -0500 (EST) From: Ilya Zakharevich Files: gv.c lib/overload.pm perl.h sv.c sv.h t/op/overload.t Chip Salzenberg writes: > > Patch now, tarchive later: Below is the fixed overloading patch. Note that in between AMG_names got const on it (a good thing!), but as a corollary I needed to cast away const-ness to actually use it (since, say, newSVpv does not have const args). Enjoy, p5p-msgid: <199612291312.IAA02134@monk.mps.ohio-state.edu> Subject: Closures at file scope must be anonymous From: Chip Salzenberg Files: op.c Subject: Warn on '{if,while} ($x = X)' where X is glob, readdir, or From: Chip Salzenberg Files: op.c pod/perldiag.pod DOCUMENTATION Subject: Re: perldiag.pod entry for "Scalar value @%s{%s} ..." Date: Tue, 31 Dec 1996 11:50:19 -0500 From: Roderick Schertler Files: pod/perldiag.pod Msg-ID: <2043.852051019@eeyore.ibcinc.com> (applied based on p5p patch as commit c885792efecf3f527b3b5099727cc16b03eee1dc) OTHER CORE CHANGES Subject: Get rid of 'Leaked scalars' From: Chip Salzenberg Files: cop.h gv.c op.c TESTS Subject: Expanded locale.t and misc.t From: Jarkko Hietaniemi Files: t/lib/locale.t t/lib/misc.t Subject: Expanded my.t From: Chip Salzenberg Files: t/lib/my.t --- pod/perltrap.pod | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'pod/perltrap.pod') diff --git a/pod/perltrap.pod b/pod/perltrap.pod index 391c98b129..b8247a4208 100644 --- a/pod/perltrap.pod +++ b/pod/perltrap.pod @@ -654,7 +654,8 @@ Formatted output and significant digits This specific item has been deleted. It demonstrated how the auto-increment operator would not catch when a number went over the signed int limit. Fixed -in 5.003_04. But always be wary when using large integers. If in doubt: +in version 5.003_04. But always be wary when using large integers. +If in doubt: use Math::BigInt; @@ -663,10 +664,10 @@ in 5.003_04. But always be wary when using large integers. If in doubt: Assignment of return values from numeric equality tests does not work in perl5 when the test evaluates to false (0). Logical tests now return an null, instead of 0 - + $p = ($test == 1); print $p,"\n"; - + # perl4 prints: 0 # perl5 prints: @@ -934,7 +935,7 @@ of assignment. Perl 4 mistakenly gave them the precedence of the associated operator. So you now must parenthesize them in expressions like /foo/ ? ($a += 2) : ($a -= 2); - + Otherwise /foo/ ? $a += 2 : $a -= 2 @@ -1164,7 +1165,7 @@ within the signal handler function, each time a signal was handled with perl4. With perl5, the reset is now done correctly. Any code relying on the handler _not_ being reset will have to be reworked. -5.002 and beyond uses sigaction() under SysV +Since version 5.002, Perl uses sigaction() under SysV. sub gotit { print "Got @_... "; -- cgit v1.2.1