1*0Sstevel@tonic-gate=head1 NAME 2*0Sstevel@tonic-gate 3*0Sstevel@tonic-gateperl581delta - what is new for perl v5.8.1 4*0Sstevel@tonic-gate 5*0Sstevel@tonic-gate=head1 DESCRIPTION 6*0Sstevel@tonic-gate 7*0Sstevel@tonic-gateThis document describes differences between the 5.8.0 release and 8*0Sstevel@tonic-gatethe 5.8.1 release. 9*0Sstevel@tonic-gate 10*0Sstevel@tonic-gateIf you are upgrading from an earlier release such as 5.6.1, first read 11*0Sstevel@tonic-gatethe L<perl58delta>, which describes differences between 5.6.0 and 12*0Sstevel@tonic-gate5.8.0. 13*0Sstevel@tonic-gate 14*0Sstevel@tonic-gateIn case you are wondering about 5.6.1, it was bug-fix-wise rather 15*0Sstevel@tonic-gateidentical to the development release 5.7.1. Confused? This timeline 16*0Sstevel@tonic-gatehopefully helps a bit: it lists the new major releases, their maintenance 17*0Sstevel@tonic-gatereleases, and the development releases. 18*0Sstevel@tonic-gate 19*0Sstevel@tonic-gate New Maintenance Development 20*0Sstevel@tonic-gate 21*0Sstevel@tonic-gate 5.6.0 2000-Mar-22 22*0Sstevel@tonic-gate 5.7.0 2000-Sep-02 23*0Sstevel@tonic-gate 5.6.1 2001-Apr-08 24*0Sstevel@tonic-gate 5.7.1 2001-Apr-09 25*0Sstevel@tonic-gate 5.7.2 2001-Jul-13 26*0Sstevel@tonic-gate 5.7.3 2002-Mar-05 27*0Sstevel@tonic-gate 5.8.0 2002-Jul-18 28*0Sstevel@tonic-gate 5.8.1 2003-Sep-25 29*0Sstevel@tonic-gate 30*0Sstevel@tonic-gate=head1 Incompatible Changes 31*0Sstevel@tonic-gate 32*0Sstevel@tonic-gate=head2 Hash Randomisation 33*0Sstevel@tonic-gate 34*0Sstevel@tonic-gateMainly due to security reasons, the "random ordering" of hashes 35*0Sstevel@tonic-gatehas been made even more random. Previously while the order of hash 36*0Sstevel@tonic-gateelements from keys(), values(), and each() was essentially random, 37*0Sstevel@tonic-gateit was still repeatable. Now, however, the order varies between 38*0Sstevel@tonic-gatedifferent runs of Perl. 39*0Sstevel@tonic-gate 40*0Sstevel@tonic-gateB<Perl has never guaranteed any ordering of the hash keys>, and the 41*0Sstevel@tonic-gateordering has already changed several times during the lifetime of 42*0Sstevel@tonic-gatePerl 5. Also, the ordering of hash keys has always been, and 43*0Sstevel@tonic-gatecontinues to be, affected by the insertion order. 44*0Sstevel@tonic-gate 45*0Sstevel@tonic-gateThe added randomness may affect applications. 46*0Sstevel@tonic-gate 47*0Sstevel@tonic-gateOne possible scenario is when output of an application has included 48*0Sstevel@tonic-gatehash data. For example, if you have used the Data::Dumper module to 49*0Sstevel@tonic-gatedump data into different files, and then compared the files to see 50*0Sstevel@tonic-gatewhether the data has changed, now you will have false positives since 51*0Sstevel@tonic-gatethe order in which hashes are dumped will vary. In general the cure 52*0Sstevel@tonic-gateis to sort the keys (or the values); in particular for Data::Dumper to 53*0Sstevel@tonic-gateuse the C<Sortkeys> option. If some particular order is really 54*0Sstevel@tonic-gateimportant, use tied hashes: for example the Tie::IxHash module 55*0Sstevel@tonic-gatewhich by default preserves the order in which the hash elements 56*0Sstevel@tonic-gatewere added. 57*0Sstevel@tonic-gate 58*0Sstevel@tonic-gateMore subtle problem is reliance on the order of "global destruction". 59*0Sstevel@tonic-gateThat is what happens at the end of execution: Perl destroys all data 60*0Sstevel@tonic-gatestructures, including user data. If your destructors (the DESTROY 61*0Sstevel@tonic-gatesubroutines) have assumed any particular ordering to the global 62*0Sstevel@tonic-gatedestruction, there might be problems ahead. For example, in a 63*0Sstevel@tonic-gatedestructor of one object you cannot assume that objects of any other 64*0Sstevel@tonic-gateclass are still available, unless you hold a reference to them. 65*0Sstevel@tonic-gateIf the environment variable PERL_DESTRUCT_LEVEL is set to a non-zero 66*0Sstevel@tonic-gatevalue, or if Perl is exiting a spawned thread, it will also destruct 67*0Sstevel@tonic-gatethe ordinary references and the symbol tables that are no longer in use. 68*0Sstevel@tonic-gateYou can't call a class method or an ordinary function on a class that 69*0Sstevel@tonic-gatehas been collected that way. 70*0Sstevel@tonic-gate 71*0Sstevel@tonic-gateThe hash randomisation is certain to reveal hidden assumptions about 72*0Sstevel@tonic-gatesome particular ordering of hash elements, and outright bugs: it 73*0Sstevel@tonic-gaterevealed a few bugs in the Perl core and core modules. 74*0Sstevel@tonic-gate 75*0Sstevel@tonic-gateTo disable the hash randomisation in runtime, set the environment 76*0Sstevel@tonic-gatevariable PERL_HASH_SEED to 0 (zero) before running Perl (for more 77*0Sstevel@tonic-gateinformation see L<perlrun/PERL_HASH_SEED>), or to disable the feature 78*0Sstevel@tonic-gatecompletely in compile time, compile with C<-DNO_HASH_SEED> (see F<INSTALL>). 79*0Sstevel@tonic-gate 80*0Sstevel@tonic-gateSee L<perlsec/"Algorithmic Complexity Attacks"> for the original 81*0Sstevel@tonic-gaterationale behind this change. 82*0Sstevel@tonic-gate 83*0Sstevel@tonic-gate=head2 UTF-8 On Filehandles No Longer Activated By Locale 84*0Sstevel@tonic-gate 85*0Sstevel@tonic-gateIn Perl 5.8.0 all filehandles, including the standard filehandles, 86*0Sstevel@tonic-gatewere implicitly set to be in Unicode UTF-8 if the locale settings 87*0Sstevel@tonic-gateindicated the use of UTF-8. This feature caused too many problems, 88*0Sstevel@tonic-gateso the feature was turned off and redesigned: see L</"Core Enhancements">. 89*0Sstevel@tonic-gate 90*0Sstevel@tonic-gate=head2 Single-number v-strings are no longer v-strings before "=>" 91*0Sstevel@tonic-gate 92*0Sstevel@tonic-gateThe version strings or v-strings (see L<perldata/"Version Strings">) 93*0Sstevel@tonic-gatefeature introduced in Perl 5.6.0 has been a source of some confusion-- 94*0Sstevel@tonic-gateespecially when the user did not want to use it, but Perl thought it 95*0Sstevel@tonic-gateknew better. Especially troublesome has been the feature that before 96*0Sstevel@tonic-gatea "=>" a version string (a "v" followed by digits) has been interpreted 97*0Sstevel@tonic-gateas a v-string instead of a string literal. In other words: 98*0Sstevel@tonic-gate 99*0Sstevel@tonic-gate %h = ( v65 => 42 ); 100*0Sstevel@tonic-gate 101*0Sstevel@tonic-gatehas meant since Perl 5.6.0 102*0Sstevel@tonic-gate 103*0Sstevel@tonic-gate %h = ( 'A' => 42 ); 104*0Sstevel@tonic-gate 105*0Sstevel@tonic-gate(at least in platforms of ASCII progeny) Perl 5.8.1 restores the 106*0Sstevel@tonic-gatemore natural interpretation 107*0Sstevel@tonic-gate 108*0Sstevel@tonic-gate %h = ( 'v65' => 42 ); 109*0Sstevel@tonic-gate 110*0Sstevel@tonic-gateThe multi-number v-strings like v65.66 and 65.66.67 still continue to 111*0Sstevel@tonic-gatebe v-strings in Perl 5.8. 112*0Sstevel@tonic-gate 113*0Sstevel@tonic-gate=head2 (Win32) The -C Switch Has Been Repurposed 114*0Sstevel@tonic-gate 115*0Sstevel@tonic-gateThe -C switch has changed in an incompatible way. The old semantics 116*0Sstevel@tonic-gateof this switch only made sense in Win32 and only in the "use utf8" 117*0Sstevel@tonic-gateuniverse in 5.6.x releases, and do not make sense for the Unicode 118*0Sstevel@tonic-gateimplementation in 5.8.0. Since this switch could not have been used 119*0Sstevel@tonic-gateby anyone, it has been repurposed. The behavior that this switch 120*0Sstevel@tonic-gateenabled in 5.6.x releases may be supported in a transparent, 121*0Sstevel@tonic-gatedata-dependent fashion in a future release. 122*0Sstevel@tonic-gate 123*0Sstevel@tonic-gateFor the new life of this switch, see L<"UTF-8 no longer default under 124*0Sstevel@tonic-gateUTF-8 locales">, and L<perlrun/-C>. 125*0Sstevel@tonic-gate 126*0Sstevel@tonic-gate=head2 (Win32) The /d Switch Of cmd.exe 127*0Sstevel@tonic-gate 128*0Sstevel@tonic-gatePerl 5.8.1 uses the /d switch when running the cmd.exe shell 129*0Sstevel@tonic-gateinternally for system(), backticks, and when opening pipes to external 130*0Sstevel@tonic-gateprograms. The extra switch disables the execution of AutoRun commands 131*0Sstevel@tonic-gatefrom the registry, which is generally considered undesirable when 132*0Sstevel@tonic-gaterunning external programs. If you wish to retain compatibility with 133*0Sstevel@tonic-gatethe older behavior, set PERL5SHELL in your environment to C<cmd /x/c>. 134*0Sstevel@tonic-gate 135*0Sstevel@tonic-gate=head1 Core Enhancements 136*0Sstevel@tonic-gate 137*0Sstevel@tonic-gate=head2 UTF-8 no longer default under UTF-8 locales 138*0Sstevel@tonic-gate 139*0Sstevel@tonic-gateIn Perl 5.8.0 many Unicode features were introduced. One of them 140*0Sstevel@tonic-gatewas found to be of more nuisance than benefit: the automagic 141*0Sstevel@tonic-gate(and silent) "UTF-8-ification" of filehandles, including the 142*0Sstevel@tonic-gatestandard filehandles, if the user's locale settings indicated 143*0Sstevel@tonic-gateuse of UTF-8. 144*0Sstevel@tonic-gate 145*0Sstevel@tonic-gateFor example, if you had C<en_US.UTF-8> as your locale, your STDIN and 146*0Sstevel@tonic-gateSTDOUT were automatically "UTF-8", in other words an implicit 147*0Sstevel@tonic-gatebinmode(..., ":utf8") was made. This meant that trying to print, say, 148*0Sstevel@tonic-gatechr(0xff), ended up printing the bytes 0xc3 0xbf. Hardly what 149*0Sstevel@tonic-gateyou had in mind unless you were aware of this feature of Perl 5.8.0. 150*0Sstevel@tonic-gateThe problem is that the vast majority of people weren't: for example 151*0Sstevel@tonic-gatein RedHat releases 8 and 9 the B<default> locale setting is UTF-8, so 152*0Sstevel@tonic-gateall RedHat users got UTF-8 filehandles, whether they wanted it or not. 153*0Sstevel@tonic-gateThe pain was intensified by the Unicode implementation of Perl 5.8.0 154*0Sstevel@tonic-gate(still) having nasty bugs, especially related to the use of s/// and 155*0Sstevel@tonic-gatetr///. (Bugs that have been fixed in 5.8.1) 156*0Sstevel@tonic-gate 157*0Sstevel@tonic-gateTherefore a decision was made to backtrack the feature and change it 158*0Sstevel@tonic-gatefrom implicit silent default to explicit conscious option. The new 159*0Sstevel@tonic-gatePerl command line option C<-C> and its counterpart environment 160*0Sstevel@tonic-gatevariable PERL_UNICODE can now be used to control how Perl and Unicode 161*0Sstevel@tonic-gateinteract at interfaces like I/O and for example the command line 162*0Sstevel@tonic-gatearguments. See L<perlrun/-C> and L<perlrun/PERL_UNICODE> for more 163*0Sstevel@tonic-gateinformation. 164*0Sstevel@tonic-gate 165*0Sstevel@tonic-gate=head2 Unsafe signals again available 166*0Sstevel@tonic-gate 167*0Sstevel@tonic-gateIn Perl 5.8.0 the so-called "safe signals" were introduced. This 168*0Sstevel@tonic-gatemeans that Perl no longer handles signals immediately but instead 169*0Sstevel@tonic-gate"between opcodes", when it is safe to do so. The earlier immediate 170*0Sstevel@tonic-gatehandling easily could corrupt the internal state of Perl, resulting 171*0Sstevel@tonic-gatein mysterious crashes. 172*0Sstevel@tonic-gate 173*0Sstevel@tonic-gateHowever, the new safer model has its problems too. Because now an 174*0Sstevel@tonic-gateopcode, a basic unit of Perl execution, is never interrupted but 175*0Sstevel@tonic-gateinstead let to run to completion, certain operations that can take a 176*0Sstevel@tonic-gatelong time now really do take a long time. For example, certain 177*0Sstevel@tonic-gatenetwork operations have their own blocking and timeout mechanisms, and 178*0Sstevel@tonic-gatebeing able to interrupt them immediately would be nice. 179*0Sstevel@tonic-gate 180*0Sstevel@tonic-gateTherefore perl 5.8.1 introduces a "backdoor" to restore the pre-5.8.0 181*0Sstevel@tonic-gate(pre-5.7.3, really) signal behaviour. Just set the environment variable 182*0Sstevel@tonic-gatePERL_SIGNALS to C<unsafe>, and the old immediate (and unsafe) 183*0Sstevel@tonic-gatesignal handling behaviour returns. See L<perlrun/PERL_SIGNALS> 184*0Sstevel@tonic-gateand L<perlipc/"Deferred Signals (Safe Signals)">. 185*0Sstevel@tonic-gate 186*0Sstevel@tonic-gateIn completely unrelated news, you can now use safe signals with 187*0Sstevel@tonic-gatePOSIX::SigAction. See L<POSIX/POSIX::SigAction>. 188*0Sstevel@tonic-gate 189*0Sstevel@tonic-gate=head2 Tied Arrays with Negative Array Indices 190*0Sstevel@tonic-gate 191*0Sstevel@tonic-gateFormerly, the indices passed to C<FETCH>, C<STORE>, C<EXISTS>, and 192*0Sstevel@tonic-gateC<DELETE> methods in tied array class were always non-negative. If 193*0Sstevel@tonic-gatethe actual argument was negative, Perl would call FETCHSIZE implicitly 194*0Sstevel@tonic-gateand add the result to the index before passing the result to the tied 195*0Sstevel@tonic-gatearray method. This behaviour is now optional. If the tied array class 196*0Sstevel@tonic-gatecontains a package variable named C<$NEGATIVE_INDICES> which is set to 197*0Sstevel@tonic-gatea true value, negative values will be passed to C<FETCH>, C<STORE>, 198*0Sstevel@tonic-gateC<EXISTS>, and C<DELETE> unchanged. 199*0Sstevel@tonic-gate 200*0Sstevel@tonic-gate=head2 local ${$x} 201*0Sstevel@tonic-gate 202*0Sstevel@tonic-gateThe syntaxes 203*0Sstevel@tonic-gate 204*0Sstevel@tonic-gate local ${$x} 205*0Sstevel@tonic-gate local @{$x} 206*0Sstevel@tonic-gate local %{$x} 207*0Sstevel@tonic-gate 208*0Sstevel@tonic-gatenow do localise variables, given that the $x is a valid variable name. 209*0Sstevel@tonic-gate 210*0Sstevel@tonic-gate=head2 Unicode Character Database 4.0.0 211*0Sstevel@tonic-gate 212*0Sstevel@tonic-gateThe copy of the Unicode Character Database included in Perl 5.8 has 213*0Sstevel@tonic-gatebeen updated to 4.0.0 from 3.2.0. This means for example that the 214*0Sstevel@tonic-gateUnicode character properties are as in Unicode 4.0.0. 215*0Sstevel@tonic-gate 216*0Sstevel@tonic-gate=head2 Deprecation Warnings 217*0Sstevel@tonic-gate 218*0Sstevel@tonic-gateThere is one new feature deprecation. Perl 5.8.0 forgot to add 219*0Sstevel@tonic-gatesome deprecation warnings, these warnings have now been added. 220*0Sstevel@tonic-gateFinally, a reminder of an impending feature removal. 221*0Sstevel@tonic-gate 222*0Sstevel@tonic-gate=head3 (Reminder) Pseudo-hashes are deprecated (really) 223*0Sstevel@tonic-gate 224*0Sstevel@tonic-gatePseudo-hashes were deprecated in Perl 5.8.0 and will be removed in 225*0Sstevel@tonic-gatePerl 5.10.0, see L<perl58delta> for details. Each attempt to access 226*0Sstevel@tonic-gatepseudo-hashes will trigger the warning C<Pseudo-hashes are deprecated>. 227*0Sstevel@tonic-gateIf you really want to continue using pseudo-hashes but not to see the 228*0Sstevel@tonic-gatedeprecation warnings, use: 229*0Sstevel@tonic-gate 230*0Sstevel@tonic-gate no warnings 'deprecated'; 231*0Sstevel@tonic-gate 232*0Sstevel@tonic-gateOr you can continue to use the L<fields> pragma, but please don't 233*0Sstevel@tonic-gateexpect the data structures to be pseudohashes any more. 234*0Sstevel@tonic-gate 235*0Sstevel@tonic-gate=head3 (Reminder) 5.005-style threads are deprecated (really) 236*0Sstevel@tonic-gate 237*0Sstevel@tonic-gate5.005-style threads (activated by C<use Thread;>) were deprecated in 238*0Sstevel@tonic-gatePerl 5.8.0 and will be removed after Perl 5.8, see L<perl58delta> for 239*0Sstevel@tonic-gatedetails. Each 5.005-style thread creation will trigger the warning 240*0Sstevel@tonic-gateC<5.005 threads are deprecated>. If you really want to continue 241*0Sstevel@tonic-gateusing the 5.005 threads but not to see the deprecation warnings, use: 242*0Sstevel@tonic-gate 243*0Sstevel@tonic-gate no warnings 'deprecated'; 244*0Sstevel@tonic-gate 245*0Sstevel@tonic-gate=head3 (Reminder) The $* variable is deprecated (really) 246*0Sstevel@tonic-gate 247*0Sstevel@tonic-gateThe C<$*> variable controlling multi-line matching has been deprecated 248*0Sstevel@tonic-gateand will be removed after 5.8. The variable has been deprecated for a 249*0Sstevel@tonic-gatelong time, and a deprecation warning C<Use of $* is deprecated> is given, 250*0Sstevel@tonic-gatenow the variable will just finally be removed. The functionality has 251*0Sstevel@tonic-gatebeen supplanted by the C</s> and C</m> modifiers on pattern matching. 252*0Sstevel@tonic-gateIf you really want to continue using the C<$*>-variable but not to see 253*0Sstevel@tonic-gatethe deprecation warnings, use: 254*0Sstevel@tonic-gate 255*0Sstevel@tonic-gate no warnings 'deprecated'; 256*0Sstevel@tonic-gate 257*0Sstevel@tonic-gate=head2 Miscellaneous Enhancements 258*0Sstevel@tonic-gate 259*0Sstevel@tonic-gateC<map> in void context is no longer expensive. C<map> is now context 260*0Sstevel@tonic-gateaware, and will not construct a list if called in void context. 261*0Sstevel@tonic-gate 262*0Sstevel@tonic-gateIf a socket gets closed by the server while printing to it, the client 263*0Sstevel@tonic-gatenow gets a SIGPIPE. While this new feature was not planned, it fell 264*0Sstevel@tonic-gatenaturally out of PerlIO changes, and is to be considered an accidental 265*0Sstevel@tonic-gatefeature. 266*0Sstevel@tonic-gate 267*0Sstevel@tonic-gatePerlIO::get_layers(FH) returns the names of the PerlIO layers 268*0Sstevel@tonic-gateactive on a filehandle. 269*0Sstevel@tonic-gate 270*0Sstevel@tonic-gatePerlIO::via layers can now have an optional UTF8 method to 271*0Sstevel@tonic-gateindicate whether the layer wants to "auto-:utf8" the stream. 272*0Sstevel@tonic-gate 273*0Sstevel@tonic-gateutf8::is_utf8() has been added as a quick way to test whether 274*0Sstevel@tonic-gatea scalar is encoded internally in UTF-8 (Unicode). 275*0Sstevel@tonic-gate 276*0Sstevel@tonic-gate=head1 Modules and Pragmata 277*0Sstevel@tonic-gate 278*0Sstevel@tonic-gate=head2 Updated Modules And Pragmata 279*0Sstevel@tonic-gate 280*0Sstevel@tonic-gateThe following modules and pragmata have been updated since Perl 5.8.0: 281*0Sstevel@tonic-gate 282*0Sstevel@tonic-gate=over 4 283*0Sstevel@tonic-gate 284*0Sstevel@tonic-gate=item base 285*0Sstevel@tonic-gate 286*0Sstevel@tonic-gate=item B::Bytecode 287*0Sstevel@tonic-gate 288*0Sstevel@tonic-gateIn much better shape than it used to be. Still far from perfect, but 289*0Sstevel@tonic-gatemaybe worth a try. 290*0Sstevel@tonic-gate 291*0Sstevel@tonic-gate=item B::Concise 292*0Sstevel@tonic-gate 293*0Sstevel@tonic-gate=item B::Deparse 294*0Sstevel@tonic-gate 295*0Sstevel@tonic-gate=item Benchmark 296*0Sstevel@tonic-gate 297*0Sstevel@tonic-gateAn optional feature, C<:hireswallclock>, now allows for high 298*0Sstevel@tonic-gateresolution wall clock times (uses Time::HiRes). 299*0Sstevel@tonic-gate 300*0Sstevel@tonic-gate=item ByteLoader 301*0Sstevel@tonic-gate 302*0Sstevel@tonic-gateSee B::Bytecode. 303*0Sstevel@tonic-gate 304*0Sstevel@tonic-gate=item bytes 305*0Sstevel@tonic-gate 306*0Sstevel@tonic-gateNow has bytes::substr. 307*0Sstevel@tonic-gate 308*0Sstevel@tonic-gate=item CGI 309*0Sstevel@tonic-gate 310*0Sstevel@tonic-gate=item charnames 311*0Sstevel@tonic-gate 312*0Sstevel@tonic-gateOne can now have custom character name aliases. 313*0Sstevel@tonic-gate 314*0Sstevel@tonic-gate=item CPAN 315*0Sstevel@tonic-gate 316*0Sstevel@tonic-gateThere is now a simple command line frontend to the CPAN.pm 317*0Sstevel@tonic-gatemodule called F<cpan>. 318*0Sstevel@tonic-gate 319*0Sstevel@tonic-gate=item Data::Dumper 320*0Sstevel@tonic-gate 321*0Sstevel@tonic-gateA new option, Pair, allows choosing the separator between hash keys 322*0Sstevel@tonic-gateand values. 323*0Sstevel@tonic-gate 324*0Sstevel@tonic-gate=item DB_File 325*0Sstevel@tonic-gate 326*0Sstevel@tonic-gate=item Devel::PPPort 327*0Sstevel@tonic-gate 328*0Sstevel@tonic-gate=item Digest::MD5 329*0Sstevel@tonic-gate 330*0Sstevel@tonic-gate=item Encode 331*0Sstevel@tonic-gate 332*0Sstevel@tonic-gateSignificant updates on the encoding pragma functionality 333*0Sstevel@tonic-gate(tr/// and the DATA filehandle, formats). 334*0Sstevel@tonic-gate 335*0Sstevel@tonic-gateIf a filehandle has been marked as to have an encoding, unmappable 336*0Sstevel@tonic-gatecharacters are detected already during input, not later (when the 337*0Sstevel@tonic-gatecorrupted data is being used). 338*0Sstevel@tonic-gate 339*0Sstevel@tonic-gateThe ISO 8859-6 conversion table has been corrected (the 0x30..0x39 340*0Sstevel@tonic-gateerroneously mapped to U+0660..U+0669, instead of U+0030..U+0039). The 341*0Sstevel@tonic-gateGSM 03.38 conversion did not handle escape sequences correctly. The 342*0Sstevel@tonic-gateUTF-7 encoding has been added (making Encode feature-complete with 343*0Sstevel@tonic-gateUnicode::String). 344*0Sstevel@tonic-gate 345*0Sstevel@tonic-gate=item fields 346*0Sstevel@tonic-gate 347*0Sstevel@tonic-gate=item libnet 348*0Sstevel@tonic-gate 349*0Sstevel@tonic-gate=item Math::BigInt 350*0Sstevel@tonic-gate 351*0Sstevel@tonic-gateA lot of bugs have been fixed since v1.60, the version included in Perl 352*0Sstevel@tonic-gatev5.8.0. Especially noteworthy are the bug in Calc that caused div and mod to 353*0Sstevel@tonic-gatefail for some large values, and the fixes to the handling of bad inputs. 354*0Sstevel@tonic-gate 355*0Sstevel@tonic-gateSome new features were added, e.g. the broot() method, you can now pass 356*0Sstevel@tonic-gateparameters to config() to change some settings at runtime, and it is now 357*0Sstevel@tonic-gatepossible to trap the creation of NaN and infinity. 358*0Sstevel@tonic-gate 359*0Sstevel@tonic-gateAs usual, some optimizations took place and made the math overall a tad 360*0Sstevel@tonic-gatefaster. In some cases, quite a lot faster, actually. Especially alternative 361*0Sstevel@tonic-gatelibraries like Math::BigInt::GMP benefit from this. In addition, a lot of the 362*0Sstevel@tonic-gatequite clunky routines like fsqrt() and flog() are now much much faster. 363*0Sstevel@tonic-gate 364*0Sstevel@tonic-gate=item MIME::Base64 365*0Sstevel@tonic-gate 366*0Sstevel@tonic-gate=item NEXT 367*0Sstevel@tonic-gate 368*0Sstevel@tonic-gateDiamond inheritance now works. 369*0Sstevel@tonic-gate 370*0Sstevel@tonic-gate=item Net::Ping 371*0Sstevel@tonic-gate 372*0Sstevel@tonic-gate=item PerlIO::scalar 373*0Sstevel@tonic-gate 374*0Sstevel@tonic-gateReading from non-string scalars (like the special variables, see 375*0Sstevel@tonic-gateL<perlvar>) now works. 376*0Sstevel@tonic-gate 377*0Sstevel@tonic-gate=item podlators 378*0Sstevel@tonic-gate 379*0Sstevel@tonic-gate=item Pod::LaTeX 380*0Sstevel@tonic-gate 381*0Sstevel@tonic-gate=item PodParsers 382*0Sstevel@tonic-gate 383*0Sstevel@tonic-gate=item Pod::Perldoc 384*0Sstevel@tonic-gate 385*0Sstevel@tonic-gateComplete rewrite. As a side-effect, no longer refuses to startup when 386*0Sstevel@tonic-gaterun by root. 387*0Sstevel@tonic-gate 388*0Sstevel@tonic-gate=item Scalar::Util 389*0Sstevel@tonic-gate 390*0Sstevel@tonic-gateNew utilities: refaddr, isvstring, looks_like_number, set_prototype. 391*0Sstevel@tonic-gate 392*0Sstevel@tonic-gate=item Storable 393*0Sstevel@tonic-gate 394*0Sstevel@tonic-gateCan now store code references (via B::Deparse, so not foolproof). 395*0Sstevel@tonic-gate 396*0Sstevel@tonic-gate=item strict 397*0Sstevel@tonic-gate 398*0Sstevel@tonic-gateEarlier versions of the strict pragma did not check the parameters 399*0Sstevel@tonic-gateimplicitly passed to its "import" (use) and "unimport" (no) routine. 400*0Sstevel@tonic-gateThis caused the false idiom such as: 401*0Sstevel@tonic-gate 402*0Sstevel@tonic-gate use strict qw(@ISA); 403*0Sstevel@tonic-gate @ISA = qw(Foo); 404*0Sstevel@tonic-gate 405*0Sstevel@tonic-gateThis however (probably) raised the false expectation that the strict 406*0Sstevel@tonic-gaterefs, vars and subs were being enforced (and that @ISA was somehow 407*0Sstevel@tonic-gate"declared"). But the strict refs, vars, and subs are B<not> enforced 408*0Sstevel@tonic-gatewhen using this false idiom. 409*0Sstevel@tonic-gate 410*0Sstevel@tonic-gateStarting from Perl 5.8.1, the above B<will> cause an error to be 411*0Sstevel@tonic-gateraised. This may cause programs which used to execute seemingly 412*0Sstevel@tonic-gatecorrectly without warnings and errors to fail when run under 5.8.1. 413*0Sstevel@tonic-gateThis happens because 414*0Sstevel@tonic-gate 415*0Sstevel@tonic-gate use strict qw(@ISA); 416*0Sstevel@tonic-gate 417*0Sstevel@tonic-gatewill now fail with the error: 418*0Sstevel@tonic-gate 419*0Sstevel@tonic-gate Unknown 'strict' tag(s) '@ISA' 420*0Sstevel@tonic-gate 421*0Sstevel@tonic-gateThe remedy to this problem is to replace this code with the correct idiom: 422*0Sstevel@tonic-gate 423*0Sstevel@tonic-gate use strict; 424*0Sstevel@tonic-gate use vars qw(@ISA); 425*0Sstevel@tonic-gate @ISA = qw(Foo); 426*0Sstevel@tonic-gate 427*0Sstevel@tonic-gate=item Term::ANSIcolor 428*0Sstevel@tonic-gate 429*0Sstevel@tonic-gate=item Test::Harness 430*0Sstevel@tonic-gate 431*0Sstevel@tonic-gateNow much more picky about extra or missing output from test scripts. 432*0Sstevel@tonic-gate 433*0Sstevel@tonic-gate=item Test::More 434*0Sstevel@tonic-gate 435*0Sstevel@tonic-gate=item Test::Simple 436*0Sstevel@tonic-gate 437*0Sstevel@tonic-gate=item Text::Balanced 438*0Sstevel@tonic-gate 439*0Sstevel@tonic-gate=item Time::HiRes 440*0Sstevel@tonic-gate 441*0Sstevel@tonic-gateUse of nanosleep(), if available, allows mixing subsecond sleeps with 442*0Sstevel@tonic-gatealarms. 443*0Sstevel@tonic-gate 444*0Sstevel@tonic-gate=item threads 445*0Sstevel@tonic-gate 446*0Sstevel@tonic-gateSeveral fixes, for example for join() problems and memory 447*0Sstevel@tonic-gateleaks. In some platforms (like Linux) that use glibc the minimum memory 448*0Sstevel@tonic-gatefootprint of one ithread has been reduced by several hundred kilobytes. 449*0Sstevel@tonic-gate 450*0Sstevel@tonic-gate=item threads::shared 451*0Sstevel@tonic-gate 452*0Sstevel@tonic-gateMany memory leaks have been fixed. 453*0Sstevel@tonic-gate 454*0Sstevel@tonic-gate=item Unicode::Collate 455*0Sstevel@tonic-gate 456*0Sstevel@tonic-gate=item Unicode::Normalize 457*0Sstevel@tonic-gate 458*0Sstevel@tonic-gate=item Win32::GetFolderPath 459*0Sstevel@tonic-gate 460*0Sstevel@tonic-gate=item Win32::GetOSVersion 461*0Sstevel@tonic-gate 462*0Sstevel@tonic-gateNow returns extra information. 463*0Sstevel@tonic-gate 464*0Sstevel@tonic-gate=back 465*0Sstevel@tonic-gate 466*0Sstevel@tonic-gate=head1 Utility Changes 467*0Sstevel@tonic-gate 468*0Sstevel@tonic-gateThe C<h2xs> utility now produces a more modern layout: 469*0Sstevel@tonic-gateF<Foo-Bar/lib/Foo/Bar.pm> instead of F<Foo/Bar/Bar.pm>. 470*0Sstevel@tonic-gateAlso, the boilerplate test is now called F<t/Foo-Bar.t> 471*0Sstevel@tonic-gateinstead of F<t/1.t>. 472*0Sstevel@tonic-gate 473*0Sstevel@tonic-gateThe Perl debugger (F<lib/perl5db.pl>) has now been extensively 474*0Sstevel@tonic-gatedocumented and bugs found while documenting have been fixed. 475*0Sstevel@tonic-gate 476*0Sstevel@tonic-gateC<perldoc> has been rewritten from scratch to be more robust and 477*0Sstevel@tonic-gatefeatureful. 478*0Sstevel@tonic-gate 479*0Sstevel@tonic-gateC<perlcc -B> works now at least somewhat better, while C<perlcc -c> 480*0Sstevel@tonic-gateis rather more broken. (The Perl compiler suite as a whole continues 481*0Sstevel@tonic-gateto be experimental.) 482*0Sstevel@tonic-gate 483*0Sstevel@tonic-gate=head1 New Documentation 484*0Sstevel@tonic-gate 485*0Sstevel@tonic-gateperl573delta has been added to list the differences between the 486*0Sstevel@tonic-gate(now quite obsolete) development releases 5.7.2 and 5.7.3. 487*0Sstevel@tonic-gate 488*0Sstevel@tonic-gateperl58delta has been added: it is the perldelta of 5.8.0, detailing 489*0Sstevel@tonic-gatethe differences between 5.6.0 and 5.8.0. 490*0Sstevel@tonic-gate 491*0Sstevel@tonic-gateperlartistic has been added: it is the Artistic License in pod format, 492*0Sstevel@tonic-gatemaking it easier for modules to refer to it. 493*0Sstevel@tonic-gate 494*0Sstevel@tonic-gateperlcheat has been added: it is a Perl cheat sheet. 495*0Sstevel@tonic-gate 496*0Sstevel@tonic-gateperlgpl has been added: it is the GNU General Public License in pod 497*0Sstevel@tonic-gateformat, making it easier for modules to refer to it. 498*0Sstevel@tonic-gate 499*0Sstevel@tonic-gateperlmacosx has been added to tell about the installation and use 500*0Sstevel@tonic-gateof Perl in Mac OS X. 501*0Sstevel@tonic-gate 502*0Sstevel@tonic-gateperlos400 has been added to tell about the installation and use 503*0Sstevel@tonic-gateof Perl in OS/400 PASE. 504*0Sstevel@tonic-gate 505*0Sstevel@tonic-gateperlreref has been added: it is a regular expressions quick reference. 506*0Sstevel@tonic-gate 507*0Sstevel@tonic-gate=head1 Installation and Configuration Improvements 508*0Sstevel@tonic-gate 509*0Sstevel@tonic-gateThe UNIX standard Perl location, F</usr/bin/perl>, is no longer 510*0Sstevel@tonic-gateoverwritten by default if it exists. This change was very prudent 511*0Sstevel@tonic-gatebecause so many UNIX vendors already provide a F</usr/bin/perl>, 512*0Sstevel@tonic-gatebut simultaneously many system utilities may depend on that 513*0Sstevel@tonic-gateexact version of Perl, so better not to overwrite it. 514*0Sstevel@tonic-gate 515*0Sstevel@tonic-gateOne can now specify installation directories for site and vendor man 516*0Sstevel@tonic-gateand HTML pages, and site and vendor scripts. See F<INSTALL>. 517*0Sstevel@tonic-gate 518*0Sstevel@tonic-gateOne can now specify a destination directory for Perl installation 519*0Sstevel@tonic-gateby specifying the DESTDIR variable for C<make install>. (This feature 520*0Sstevel@tonic-gateis slightly different from the previous C<Configure -Dinstallprefix=...>.) 521*0Sstevel@tonic-gateSee F<INSTALL>. 522*0Sstevel@tonic-gate 523*0Sstevel@tonic-gategcc versions 3.x introduced a new warning that caused a lot of noise 524*0Sstevel@tonic-gateduring Perl compilation: C<gcc -Ialreadyknowndirectory (warning: 525*0Sstevel@tonic-gatechanging search order)>. This warning has now been avoided by 526*0Sstevel@tonic-gateConfigure weeding out such directories before the compilation. 527*0Sstevel@tonic-gate 528*0Sstevel@tonic-gateOne can now build subsets of Perl core modules by using the 529*0Sstevel@tonic-gateConfigure flags C<-Dnoextensions=...> and C<-Donlyextensions=...>, 530*0Sstevel@tonic-gatesee F<INSTALL>. 531*0Sstevel@tonic-gate 532*0Sstevel@tonic-gate=head2 Platform-specific enhancements 533*0Sstevel@tonic-gate 534*0Sstevel@tonic-gateIn Cygwin Perl can now be built with threads (C<Configure -Duseithreads>). 535*0Sstevel@tonic-gateThis works with both Cygwin 1.3.22 and Cygwin 1.5.3. 536*0Sstevel@tonic-gate 537*0Sstevel@tonic-gateIn newer FreeBSD releases Perl 5.8.0 compilation failed because of 538*0Sstevel@tonic-gatetrying to use F<malloc.h>, which in FreeBSD is just a dummy file, and 539*0Sstevel@tonic-gatea fatal error to even try to use. Now F<malloc.h> is not used. 540*0Sstevel@tonic-gate 541*0Sstevel@tonic-gatePerl is now known to build also in Hitachi HI-UXMPP. 542*0Sstevel@tonic-gate 543*0Sstevel@tonic-gatePerl is now known to build again in LynxOS. 544*0Sstevel@tonic-gate 545*0Sstevel@tonic-gateMac OS X now installs with Perl version number embedded in 546*0Sstevel@tonic-gateinstallation directory names for easier upgrading of user-compiled 547*0Sstevel@tonic-gatePerl, and the installation directories in general are more standard. 548*0Sstevel@tonic-gateIn other words, the default installation no longer breaks the 549*0Sstevel@tonic-gateApple-provided Perl. On the other hand, with C<Configure -Dprefix=/usr> 550*0Sstevel@tonic-gateyou can now really replace the Apple-supplied Perl (B<please be careful>). 551*0Sstevel@tonic-gate 552*0Sstevel@tonic-gateMac OS X now builds Perl statically by default. This change was done 553*0Sstevel@tonic-gatemainly for faster startup times. The Apple-provided Perl is still 554*0Sstevel@tonic-gatedynamically linked and shared, and you can enable the sharedness for 555*0Sstevel@tonic-gateyour own Perl builds by C<Configure -Duseshrplib>. 556*0Sstevel@tonic-gate 557*0Sstevel@tonic-gatePerl has been ported to IBM's OS/400 PASE environment. The best way 558*0Sstevel@tonic-gateto build a Perl for PASE is to use an AIX host as a cross-compilation 559*0Sstevel@tonic-gateenvironment. See README.os400. 560*0Sstevel@tonic-gate 561*0Sstevel@tonic-gateYet another cross-compilation option has been added: now Perl builds 562*0Sstevel@tonic-gateon OpenZaurus, an Linux distribution based on Mandrake + Embedix for 563*0Sstevel@tonic-gatethe Sharp Zaurus PDA. See the Cross/README file. 564*0Sstevel@tonic-gate 565*0Sstevel@tonic-gateTru64 when using gcc 3 drops the optimisation for F<toke.c> to C<-O2> 566*0Sstevel@tonic-gatebecause of gigantic memory use with the default C<-O3>. 567*0Sstevel@tonic-gate 568*0Sstevel@tonic-gateTru64 can now build Perl with the newer Berkeley DBs. 569*0Sstevel@tonic-gate 570*0Sstevel@tonic-gateBuilding Perl on WinCE has been much enhanced, see F<README.ce> 571*0Sstevel@tonic-gateand F<README.perlce>. 572*0Sstevel@tonic-gate 573*0Sstevel@tonic-gate=head1 Selected Bug Fixes 574*0Sstevel@tonic-gate 575*0Sstevel@tonic-gate=head2 Closures, eval and lexicals 576*0Sstevel@tonic-gate 577*0Sstevel@tonic-gateThere have been many fixes in the area of anonymous subs, lexicals and 578*0Sstevel@tonic-gateclosures. Although this means that Perl is now more "correct", it is 579*0Sstevel@tonic-gatepossible that some existing code will break that happens to rely on 580*0Sstevel@tonic-gatethe faulty behaviour. In practice this is unlikely unless your code 581*0Sstevel@tonic-gatecontains a very complex nesting of anonymous subs, evals and lexicals. 582*0Sstevel@tonic-gate 583*0Sstevel@tonic-gate=head2 Generic fixes 584*0Sstevel@tonic-gate 585*0Sstevel@tonic-gateIf an input filehandle is marked C<:utf8> and Perl sees illegal UTF-8 586*0Sstevel@tonic-gatecoming in when doing C<< <FH> >>, if warnings are enabled a warning is 587*0Sstevel@tonic-gateimmediately given - instead of being silent about it and Perl being 588*0Sstevel@tonic-gateunhappy about the broken data later. (The C<:encoding(utf8)> layer 589*0Sstevel@tonic-gatealso works the same way.) 590*0Sstevel@tonic-gate 591*0Sstevel@tonic-gatebinmode(SOCKET, ":utf8") only worked on the input side, not on the 592*0Sstevel@tonic-gateoutput side of the socket. Now it works both ways. 593*0Sstevel@tonic-gate 594*0Sstevel@tonic-gateFor threaded Perls certain system database functions like getpwent() 595*0Sstevel@tonic-gateand getgrent() now grow their result buffer dynamically, instead of 596*0Sstevel@tonic-gatefailing. This means that at sites with lots of users and groups the 597*0Sstevel@tonic-gatefunctions no longer fail by returning only partial results. 598*0Sstevel@tonic-gate 599*0Sstevel@tonic-gatePerl 5.8.0 had accidentally broken the capability for users 600*0Sstevel@tonic-gateto define their own uppercase<->lowercase Unicode mappings 601*0Sstevel@tonic-gate(as advertised by the Camel). This feature has been fixed and 602*0Sstevel@tonic-gateis also documented better. 603*0Sstevel@tonic-gate 604*0Sstevel@tonic-gateIn 5.8.0 this 605*0Sstevel@tonic-gate 606*0Sstevel@tonic-gate $some_unicode .= <FH>; 607*0Sstevel@tonic-gate 608*0Sstevel@tonic-gatedidn't work correctly but instead corrupted the data. This has now 609*0Sstevel@tonic-gatebeen fixed. 610*0Sstevel@tonic-gate 611*0Sstevel@tonic-gateTied methods like FETCH etc. may now safely access tied values, i.e. 612*0Sstevel@tonic-gateresulting in a recursive call to FETCH etc. Remember to break the 613*0Sstevel@tonic-gaterecursion, though. 614*0Sstevel@tonic-gate 615*0Sstevel@tonic-gateAt startup Perl blocks the SIGFPE signal away since there isn't much 616*0Sstevel@tonic-gatePerl can do about it. Previously this blocking was in effect also for 617*0Sstevel@tonic-gateprograms executed from within Perl. Now Perl restores the original 618*0Sstevel@tonic-gateSIGFPE handling routine, whatever it was, before running external 619*0Sstevel@tonic-gateprograms. 620*0Sstevel@tonic-gate 621*0Sstevel@tonic-gateLinenumbers in Perl scripts may now be greater than 65536, or 2**16. 622*0Sstevel@tonic-gate(Perl scripts have always been able to be larger than that, it's just 623*0Sstevel@tonic-gatethat the linenumber for reported errors and warnings have "wrapped 624*0Sstevel@tonic-gatearound".) While scripts that large usually indicate a need to rethink 625*0Sstevel@tonic-gateyour code a bit, such Perl scripts do exist, for example as results 626*0Sstevel@tonic-gatefrom generated code. Now linenumbers can go all the way to 627*0Sstevel@tonic-gate4294967296, or 2**32. 628*0Sstevel@tonic-gate 629*0Sstevel@tonic-gate=head2 Platform-specific fixes 630*0Sstevel@tonic-gate 631*0Sstevel@tonic-gateLinux 632*0Sstevel@tonic-gate 633*0Sstevel@tonic-gate=over 4 634*0Sstevel@tonic-gate 635*0Sstevel@tonic-gate=item * 636*0Sstevel@tonic-gate 637*0Sstevel@tonic-gateSetting $0 works again (with certain limitations that 638*0Sstevel@tonic-gatePerl cannot do much about: see L<perlvar/$0>) 639*0Sstevel@tonic-gate 640*0Sstevel@tonic-gate=back 641*0Sstevel@tonic-gate 642*0Sstevel@tonic-gateHP-UX 643*0Sstevel@tonic-gate 644*0Sstevel@tonic-gate=over 4 645*0Sstevel@tonic-gate 646*0Sstevel@tonic-gate=item * 647*0Sstevel@tonic-gate 648*0Sstevel@tonic-gateSetting $0 now works. 649*0Sstevel@tonic-gate 650*0Sstevel@tonic-gate=back 651*0Sstevel@tonic-gate 652*0Sstevel@tonic-gateVMS 653*0Sstevel@tonic-gate 654*0Sstevel@tonic-gate=over 4 655*0Sstevel@tonic-gate 656*0Sstevel@tonic-gate=item * 657*0Sstevel@tonic-gate 658*0Sstevel@tonic-gateConfiguration now tests for the presence of C<poll()>, and IO::Poll 659*0Sstevel@tonic-gatenow uses the vendor-supplied function if detected. 660*0Sstevel@tonic-gate 661*0Sstevel@tonic-gate=item * 662*0Sstevel@tonic-gate 663*0Sstevel@tonic-gateA rare access violation at Perl start-up could occur if the Perl image was 664*0Sstevel@tonic-gateinstalled with privileges or if there was an identifier with the 665*0Sstevel@tonic-gatesubsystem attribute set in the process's rightslist. Either of these 666*0Sstevel@tonic-gatecircumstances triggered tainting code that contained a pointer bug. 667*0Sstevel@tonic-gateThe faulty pointer arithmetic has been fixed. 668*0Sstevel@tonic-gate 669*0Sstevel@tonic-gate=item * 670*0Sstevel@tonic-gate 671*0Sstevel@tonic-gateThe length limit on values (not keys) in the %ENV hash has been raised 672*0Sstevel@tonic-gatefrom 255 bytes to 32640 bytes (except when the PERL_ENV_TABLES setting 673*0Sstevel@tonic-gateoverrides the default use of logical names for %ENV). If it is 674*0Sstevel@tonic-gatenecessary to access these long values from outside Perl, be aware that 675*0Sstevel@tonic-gatethey are implemented using search list logical names that store the 676*0Sstevel@tonic-gatevalue in pieces, each 255-byte piece (up to 128 of them) being an 677*0Sstevel@tonic-gateelement in the search list. When doing a lookup in %ENV from within 678*0Sstevel@tonic-gatePerl, the elements are combined into a single value. The existing 679*0Sstevel@tonic-gateVMS-specific ability to access individual elements of a search list 680*0Sstevel@tonic-gatelogical name via the $ENV{'foo;N'} syntax (where N is the search list 681*0Sstevel@tonic-gateindex) is unimpaired. 682*0Sstevel@tonic-gate 683*0Sstevel@tonic-gate=item * 684*0Sstevel@tonic-gate 685*0Sstevel@tonic-gateThe piping implementation now uses local rather than global DCL 686*0Sstevel@tonic-gatesymbols for inter-process communication. 687*0Sstevel@tonic-gate 688*0Sstevel@tonic-gate=item * 689*0Sstevel@tonic-gate 690*0Sstevel@tonic-gateFile::Find could become confused when navigating to a relative 691*0Sstevel@tonic-gatedirectory whose name collided with a logical name. This problem has 692*0Sstevel@tonic-gatebeen corrected by adding directory syntax to relative path names, thus 693*0Sstevel@tonic-gatepreventing logical name translation. 694*0Sstevel@tonic-gate 695*0Sstevel@tonic-gate=back 696*0Sstevel@tonic-gate 697*0Sstevel@tonic-gateWin32 698*0Sstevel@tonic-gate 699*0Sstevel@tonic-gate=over 4 700*0Sstevel@tonic-gate 701*0Sstevel@tonic-gate=item * 702*0Sstevel@tonic-gate 703*0Sstevel@tonic-gateA memory leak in the fork() emulation has been fixed. 704*0Sstevel@tonic-gate 705*0Sstevel@tonic-gate=item * 706*0Sstevel@tonic-gate 707*0Sstevel@tonic-gateThe return value of the ioctl() built-in function was accidentally 708*0Sstevel@tonic-gatebroken in 5.8.0. This has been corrected. 709*0Sstevel@tonic-gate 710*0Sstevel@tonic-gate=item * 711*0Sstevel@tonic-gate 712*0Sstevel@tonic-gateThe internal message loop executed by perl during blocking operations 713*0Sstevel@tonic-gatesometimes interfered with messages that were external to Perl. 714*0Sstevel@tonic-gateThis often resulted in blocking operations terminating prematurely or 715*0Sstevel@tonic-gatereturning incorrect results, when Perl was executing under environments 716*0Sstevel@tonic-gatethat could generate Windows messages. This has been corrected. 717*0Sstevel@tonic-gate 718*0Sstevel@tonic-gate=item * 719*0Sstevel@tonic-gate 720*0Sstevel@tonic-gatePipes and sockets are now automatically in binary mode. 721*0Sstevel@tonic-gate 722*0Sstevel@tonic-gate=item * 723*0Sstevel@tonic-gate 724*0Sstevel@tonic-gateThe four-argument form of select() did not preserve $! (errno) properly 725*0Sstevel@tonic-gatewhen there were errors in the underlying call. This is now fixed. 726*0Sstevel@tonic-gate 727*0Sstevel@tonic-gate=item * 728*0Sstevel@tonic-gate 729*0Sstevel@tonic-gateThe "CR CR LF" problem of has been fixed, binmode(FH, ":crlf") 730*0Sstevel@tonic-gateis now effectively a no-op. 731*0Sstevel@tonic-gate 732*0Sstevel@tonic-gate=back 733*0Sstevel@tonic-gate 734*0Sstevel@tonic-gate=head1 New or Changed Diagnostics 735*0Sstevel@tonic-gate 736*0Sstevel@tonic-gateAll the warnings related to pack() and unpack() were made more 737*0Sstevel@tonic-gateinformative and consistent. 738*0Sstevel@tonic-gate 739*0Sstevel@tonic-gate=head2 Changed "A thread exited while %d threads were running" 740*0Sstevel@tonic-gate 741*0Sstevel@tonic-gateThe old version 742*0Sstevel@tonic-gate 743*0Sstevel@tonic-gate A thread exited while %d other threads were still running 744*0Sstevel@tonic-gate 745*0Sstevel@tonic-gatewas misleading because the "other" included also the thread giving 746*0Sstevel@tonic-gatethe warning. 747*0Sstevel@tonic-gate 748*0Sstevel@tonic-gate=head2 Removed "Attempt to clear a restricted hash" 749*0Sstevel@tonic-gate 750*0Sstevel@tonic-gateIt is not illegal to clear a restricted hash, so the warning 751*0Sstevel@tonic-gatewas removed. 752*0Sstevel@tonic-gate 753*0Sstevel@tonic-gate=head2 New "Illegal declaration of anonymous subroutine" 754*0Sstevel@tonic-gate 755*0Sstevel@tonic-gateYou must specify the block of code for C<sub>. 756*0Sstevel@tonic-gate 757*0Sstevel@tonic-gate=head2 Changed "Invalid range "%s" in transliteration operator" 758*0Sstevel@tonic-gate 759*0Sstevel@tonic-gateThe old version 760*0Sstevel@tonic-gate 761*0Sstevel@tonic-gate Invalid [] range "%s" in transliteration operator 762*0Sstevel@tonic-gate 763*0Sstevel@tonic-gatewas simply wrong because there are no "[] ranges" in tr///. 764*0Sstevel@tonic-gate 765*0Sstevel@tonic-gate=head2 New "Missing control char name in \c" 766*0Sstevel@tonic-gate 767*0Sstevel@tonic-gateSelf-explanatory. 768*0Sstevel@tonic-gate 769*0Sstevel@tonic-gate=head2 New "Newline in left-justified string for %s" 770*0Sstevel@tonic-gate 771*0Sstevel@tonic-gateThe padding spaces would appear after the newline, which is 772*0Sstevel@tonic-gateprobably not what you had in mind. 773*0Sstevel@tonic-gate 774*0Sstevel@tonic-gate=head2 New "Possible precedence problem on bitwise %c operator" 775*0Sstevel@tonic-gate 776*0Sstevel@tonic-gateIf you think this 777*0Sstevel@tonic-gate 778*0Sstevel@tonic-gate $x & $y == 0 779*0Sstevel@tonic-gate 780*0Sstevel@tonic-gatetests whether the bitwise AND of $x and $y is zero, 781*0Sstevel@tonic-gateyou will like this warning. 782*0Sstevel@tonic-gate 783*0Sstevel@tonic-gate=head2 New "Pseudo-hashes are deprecated" 784*0Sstevel@tonic-gate 785*0Sstevel@tonic-gateThis warning should have been already in 5.8.0, since they are. 786*0Sstevel@tonic-gate 787*0Sstevel@tonic-gate=head2 New "read() on %s filehandle %s" 788*0Sstevel@tonic-gate 789*0Sstevel@tonic-gateYou cannot read() (or sysread()) from a closed or unopened filehandle. 790*0Sstevel@tonic-gate 791*0Sstevel@tonic-gate=head2 New "5.005 threads are deprecated" 792*0Sstevel@tonic-gate 793*0Sstevel@tonic-gateThis warning should have been already in 5.8.0, since they are. 794*0Sstevel@tonic-gate 795*0Sstevel@tonic-gate=head2 New "Tied variable freed while still in use" 796*0Sstevel@tonic-gate 797*0Sstevel@tonic-gateSomething pulled the plug on a live tied variable, Perl plays 798*0Sstevel@tonic-gatesafe by bailing out. 799*0Sstevel@tonic-gate 800*0Sstevel@tonic-gate=head2 New "To%s: illegal mapping '%s'" 801*0Sstevel@tonic-gate 802*0Sstevel@tonic-gateAn illegal user-defined Unicode casemapping was specified. 803*0Sstevel@tonic-gate 804*0Sstevel@tonic-gate=head2 New "Use of freed value in iteration" 805*0Sstevel@tonic-gate 806*0Sstevel@tonic-gateSomething modified the values being iterated over. This is not good. 807*0Sstevel@tonic-gate 808*0Sstevel@tonic-gate=head1 Changed Internals 809*0Sstevel@tonic-gate 810*0Sstevel@tonic-gateThese news matter to you only if you either write XS code or like to 811*0Sstevel@tonic-gateknow about or hack Perl internals (using Devel::Peek or any of the 812*0Sstevel@tonic-gateC<B::> modules counts), or like to run Perl with the C<-D> option. 813*0Sstevel@tonic-gate 814*0Sstevel@tonic-gateThe embedding examples of L<perlembed> have been reviewed to be 815*0Sstevel@tonic-gateuptodate and consistent: for example, the correct use of 816*0Sstevel@tonic-gatePERL_SYS_INIT3() and PERL_SYS_TERM(). 817*0Sstevel@tonic-gate 818*0Sstevel@tonic-gateExtensive reworking of the pad code (the code responsible 819*0Sstevel@tonic-gatefor lexical variables) has been conducted by Dave Mitchell. 820*0Sstevel@tonic-gate 821*0Sstevel@tonic-gateExtensive work on the v-strings by John Peacock. 822*0Sstevel@tonic-gate 823*0Sstevel@tonic-gateUTF-8 length and position cache: to speed up the handling of Unicode 824*0Sstevel@tonic-gate(UTF-8) scalars, a cache was introduced. Potential problems exist if 825*0Sstevel@tonic-gatean extension bypasses the official APIs and directly modifies the PV 826*0Sstevel@tonic-gateof an SV: the UTF-8 cache does not get cleared as it should. 827*0Sstevel@tonic-gate 828*0Sstevel@tonic-gateAPIs obsoleted in Perl 5.8.0, like sv_2pv, sv_catpvn, sv_catsv, 829*0Sstevel@tonic-gatesv_setsv, are again available. 830*0Sstevel@tonic-gate 831*0Sstevel@tonic-gateCertain Perl core C APIs like cxinc and regatom are no longer 832*0Sstevel@tonic-gateavailable at all to code outside the Perl core of the Perl core 833*0Sstevel@tonic-gateextensions. This is intentional. They never should have been 834*0Sstevel@tonic-gateavailable with the shorter names, and if you application depends on 835*0Sstevel@tonic-gatethem, you should (be ashamed and) contact perl5-porters to discuss 836*0Sstevel@tonic-gatewhat are the proper APIs. 837*0Sstevel@tonic-gate 838*0Sstevel@tonic-gateCertain Perl core C APIs like C<Perl_list> are no longer available 839*0Sstevel@tonic-gatewithout their C<Perl_> prefix. If your XS module stops working 840*0Sstevel@tonic-gatebecause some functions cannot be found, in many cases a simple fix is 841*0Sstevel@tonic-gateto add the C<Perl_> prefix to the function and the thread context 842*0Sstevel@tonic-gateC<aTHX_> as the first argument of the function call. This is also how 843*0Sstevel@tonic-gateit should always have been done: letting the Perl_-less forms to leak 844*0Sstevel@tonic-gatefrom the core was an accident. For cleaner embedding you can also 845*0Sstevel@tonic-gateforce this for all APIs by defining at compile time the cpp define 846*0Sstevel@tonic-gatePERL_NO_SHORT_NAMES. 847*0Sstevel@tonic-gate 848*0Sstevel@tonic-gatePerl_save_bool() has been added. 849*0Sstevel@tonic-gate 850*0Sstevel@tonic-gateRegexp objects (those created with C<qr>) now have S-magic rather than 851*0Sstevel@tonic-gateR-magic. This fixed regexps of the form /...(??{...;$x})/ to no 852*0Sstevel@tonic-gatelonger ignore changes made to $x. The S-magic avoids dropping 853*0Sstevel@tonic-gatethe caching optimization and making (??{...}) constructs obscenely 854*0Sstevel@tonic-gateslow (and consequently useless). See also L<perlguts/"Magic Variables">. 855*0Sstevel@tonic-gateRegexp::Copy was affected by this change. 856*0Sstevel@tonic-gate 857*0Sstevel@tonic-gateThe Perl internal debugging macros DEBUG() and DEB() have been renamed 858*0Sstevel@tonic-gateto PERL_DEBUG() and PERL_DEB() to avoid namespace conflicts. 859*0Sstevel@tonic-gate 860*0Sstevel@tonic-gateC<-DL> removed (the leaktest had been broken and unsupported for years, 861*0Sstevel@tonic-gateuse alternative debugging mallocs or tools like valgrind and Purify). 862*0Sstevel@tonic-gate 863*0Sstevel@tonic-gateVerbose modifier C<v> added for C<-DXv> and C<-Dsv>, see L<perlrun>. 864*0Sstevel@tonic-gate 865*0Sstevel@tonic-gate=head1 New Tests 866*0Sstevel@tonic-gate 867*0Sstevel@tonic-gateIn Perl 5.8.0 there were about 69000 separate tests in about 700 test files, 868*0Sstevel@tonic-gatein Perl 5.8.1 there are about 77000 separate tests in about 780 test files. 869*0Sstevel@tonic-gateThe exact numbers depend on the Perl configuration and on the operating 870*0Sstevel@tonic-gatesystem platform. 871*0Sstevel@tonic-gate 872*0Sstevel@tonic-gate=head1 Known Problems 873*0Sstevel@tonic-gate 874*0Sstevel@tonic-gateThe hash randomisation mentioned in L</Incompatible Changes> is definitely 875*0Sstevel@tonic-gateproblematic: it will wake dormant bugs and shake out bad assumptions. 876*0Sstevel@tonic-gate 877*0Sstevel@tonic-gateIf you want to use mod_perl 2.x with Perl 5.8.1, you will need 878*0Sstevel@tonic-gatemod_perl-1.99_10 or higher. Earlier versions of mod_perl 2.x 879*0Sstevel@tonic-gatedo not work with the randomised hashes. (mod_perl 1.x works fine.) 880*0Sstevel@tonic-gateYou will also need Apache::Test 1.04 or higher. 881*0Sstevel@tonic-gate 882*0Sstevel@tonic-gateMany of the rarer platforms that worked 100% or pretty close to it 883*0Sstevel@tonic-gatewith perl 5.8.0 have been left a little bit untended since their 884*0Sstevel@tonic-gatemaintainers have been otherwise busy lately, and therefore there will 885*0Sstevel@tonic-gatebe more failures on those platforms. Such platforms include Mac OS 886*0Sstevel@tonic-gateClassic, IBM z/OS (and other EBCDIC platforms), and NetWare. The most 887*0Sstevel@tonic-gatecommon Perl platforms (Unix and Unix-like, Microsoft platforms, and 888*0Sstevel@tonic-gateVMS) have large enough testing and expert population that they are 889*0Sstevel@tonic-gatedoing well. 890*0Sstevel@tonic-gate 891*0Sstevel@tonic-gate=head2 Tied hashes in scalar context 892*0Sstevel@tonic-gate 893*0Sstevel@tonic-gateTied hashes do not currently return anything useful in scalar context, 894*0Sstevel@tonic-gatefor example when used as boolean tests: 895*0Sstevel@tonic-gate 896*0Sstevel@tonic-gate if (%tied_hash) { ... } 897*0Sstevel@tonic-gate 898*0Sstevel@tonic-gateThe current nonsensical behaviour is always to return false, 899*0Sstevel@tonic-gateregardless of whether the hash is empty or has elements. 900*0Sstevel@tonic-gate 901*0Sstevel@tonic-gateThe root cause is that there is no interface for the implementors of 902*0Sstevel@tonic-gatetied hashes to implement the behaviour of a hash in scalar context. 903*0Sstevel@tonic-gate 904*0Sstevel@tonic-gate=head2 Net::Ping 450_service and 510_ping_udp failures 905*0Sstevel@tonic-gate 906*0Sstevel@tonic-gateThe subtests 9 and 18 of lib/Net/Ping/t/450_service.t, and the 907*0Sstevel@tonic-gatesubtest 2 of lib/Net/Ping/t/510_ping_udp.t might fail if you have 908*0Sstevel@tonic-gatean unusual networking setup. For example in the latter case the 909*0Sstevel@tonic-gatetest is trying to send a UDP ping to the IP address 127.0.0.1. 910*0Sstevel@tonic-gate 911*0Sstevel@tonic-gate=head2 B::C 912*0Sstevel@tonic-gate 913*0Sstevel@tonic-gateThe C-generating compiler backend B::C (the frontend being 914*0Sstevel@tonic-gateC<perlcc -c>) is even more broken than it used to be because of 915*0Sstevel@tonic-gatethe extensive lexical variable changes. (The good news is that 916*0Sstevel@tonic-gateB::Bytecode and ByteLoader are better than they used to be.) 917*0Sstevel@tonic-gate 918*0Sstevel@tonic-gate=head1 Platform Specific Problems 919*0Sstevel@tonic-gate 920*0Sstevel@tonic-gate=head2 EBCDIC Platforms 921*0Sstevel@tonic-gate 922*0Sstevel@tonic-gateIBM z/OS and other EBCDIC platforms continue to be problematic 923*0Sstevel@tonic-gateregarding Unicode support. Many Unicode tests are skipped when 924*0Sstevel@tonic-gatethey really should be fixed. 925*0Sstevel@tonic-gate 926*0Sstevel@tonic-gate=head2 Cygwin 1.5 problems 927*0Sstevel@tonic-gate 928*0Sstevel@tonic-gateIn Cygwin 1.5 the F<io/tell> and F<op/sysio> tests have failures for 929*0Sstevel@tonic-gatesome yet unknown reason. In 1.5.5 the threads tests stress_cv, 930*0Sstevel@tonic-gatestress_re, and stress_string are failing unless the environment 931*0Sstevel@tonic-gatevariable PERLIO is set to "perlio" (which makes also the io/tell 932*0Sstevel@tonic-gatefailure go away). 933*0Sstevel@tonic-gate 934*0Sstevel@tonic-gatePerl 5.8.1 does build and work well with Cygwin 1.3: with (uname -a) 935*0Sstevel@tonic-gateC<CYGWIN_NT-5.0 ... 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 ...> 936*0Sstevel@tonic-gatea 100% "make test" was achieved with C<Configure -des -Duseithreads>. 937*0Sstevel@tonic-gate 938*0Sstevel@tonic-gate=head2 HP-UX: HP cc warnings about sendfile and sendpath 939*0Sstevel@tonic-gate 940*0Sstevel@tonic-gateWith certain HP C compiler releases (e.g. B.11.11.02) you will 941*0Sstevel@tonic-gateget many warnings like this (lines wrapped for easier reading): 942*0Sstevel@tonic-gate 943*0Sstevel@tonic-gate cc: "/usr/include/sys/socket.h", line 504: warning 562: 944*0Sstevel@tonic-gate Redeclaration of "sendfile" with a different storage class specifier: 945*0Sstevel@tonic-gate "sendfile" will have internal linkage. 946*0Sstevel@tonic-gate cc: "/usr/include/sys/socket.h", line 505: warning 562: 947*0Sstevel@tonic-gate Redeclaration of "sendpath" with a different storage class specifier: 948*0Sstevel@tonic-gate "sendpath" will have internal linkage. 949*0Sstevel@tonic-gate 950*0Sstevel@tonic-gateThe warnings show up both during the build of Perl and during certain 951*0Sstevel@tonic-gatelib/ExtUtils tests that invoke the C compiler. The warning, however, 952*0Sstevel@tonic-gateis not serious and can be ignored. 953*0Sstevel@tonic-gate 954*0Sstevel@tonic-gate=head2 IRIX: t/uni/tr_7jis.t falsely failing 955*0Sstevel@tonic-gate 956*0Sstevel@tonic-gateThe test t/uni/tr_7jis.t is known to report failure under 'make test' 957*0Sstevel@tonic-gateor the test harness with certain releases of IRIX (at least IRIX 6.5 958*0Sstevel@tonic-gateand MIPSpro Compilers Version 7.3.1.1m), but if run manually the test 959*0Sstevel@tonic-gatefully passes. 960*0Sstevel@tonic-gate 961*0Sstevel@tonic-gate=head2 Mac OS X: no usemymalloc 962*0Sstevel@tonic-gate 963*0Sstevel@tonic-gateThe Perl malloc (C<-Dusemymalloc>) does not work at all in Mac OS X. 964*0Sstevel@tonic-gateThis is not that serious, though, since the native malloc works just 965*0Sstevel@tonic-gatefine. 966*0Sstevel@tonic-gate 967*0Sstevel@tonic-gate=head2 Tru64: No threaded builds with GNU cc (gcc) 968*0Sstevel@tonic-gate 969*0Sstevel@tonic-gateIn the latest Tru64 releases (e.g. v5.1B or later) gcc cannot be used 970*0Sstevel@tonic-gateto compile a threaded Perl (-Duseithreads) because the system 971*0Sstevel@tonic-gateC<< <pthread.h> >> file doesn't know about gcc. 972*0Sstevel@tonic-gate 973*0Sstevel@tonic-gate=head2 Win32: sysopen, sysread, syswrite 974*0Sstevel@tonic-gate 975*0Sstevel@tonic-gateAs of the 5.8.0 release, sysopen()/sysread()/syswrite() do not behave 976*0Sstevel@tonic-gatelike they used to in 5.6.1 and earlier with respect to "text" mode. 977*0Sstevel@tonic-gateThese built-ins now always operate in "binary" mode (even if sysopen() 978*0Sstevel@tonic-gatewas passed the O_TEXT flag, or if binmode() was used on the file 979*0Sstevel@tonic-gatehandle). Note that this issue should only make a difference for disk 980*0Sstevel@tonic-gatefiles, as sockets and pipes have always been in "binary" mode in the 981*0Sstevel@tonic-gateWindows port. As this behavior is currently considered a bug, 982*0Sstevel@tonic-gatecompatible behavior may be re-introduced in a future release. Until 983*0Sstevel@tonic-gatethen, the use of sysopen(), sysread() and syswrite() is not supported 984*0Sstevel@tonic-gatefor "text" mode operations. 985*0Sstevel@tonic-gate 986*0Sstevel@tonic-gate=head1 Future Directions 987*0Sstevel@tonic-gate 988*0Sstevel@tonic-gateThe following things B<might> happen in future. The first publicly 989*0Sstevel@tonic-gateavailable releases having these characteristics will be the developer 990*0Sstevel@tonic-gatereleases Perl 5.9.x, culminating in the Perl 5.10.0 release. These 991*0Sstevel@tonic-gateare our best guesses at the moment: we reserve the right to rethink. 992*0Sstevel@tonic-gate 993*0Sstevel@tonic-gate=over 4 994*0Sstevel@tonic-gate 995*0Sstevel@tonic-gate=item * 996*0Sstevel@tonic-gate 997*0Sstevel@tonic-gatePerlIO will become The Default. Currently (in Perl 5.8.x) the stdio 998*0Sstevel@tonic-gatelibrary is still used if Perl thinks it can use certain tricks to 999*0Sstevel@tonic-gatemake stdio go B<really> fast. For future releases our goal is to 1000*0Sstevel@tonic-gatemake PerlIO go even faster. 1001*0Sstevel@tonic-gate 1002*0Sstevel@tonic-gate=item * 1003*0Sstevel@tonic-gate 1004*0Sstevel@tonic-gateA new feature called I<assertions> will be available. This means that 1005*0Sstevel@tonic-gateone can have code called assertions sprinkled in the code: usually 1006*0Sstevel@tonic-gatethey are optimised away, but they can be enabled with the C<-A> option. 1007*0Sstevel@tonic-gate 1008*0Sstevel@tonic-gate=item * 1009*0Sstevel@tonic-gate 1010*0Sstevel@tonic-gateA new operator C<//> (defined-or) will be available. This means that 1011*0Sstevel@tonic-gateone will be able to say 1012*0Sstevel@tonic-gate 1013*0Sstevel@tonic-gate $a // $b 1014*0Sstevel@tonic-gate 1015*0Sstevel@tonic-gateinstead of 1016*0Sstevel@tonic-gate 1017*0Sstevel@tonic-gate defined $a ? $a : $b 1018*0Sstevel@tonic-gate 1019*0Sstevel@tonic-gateand 1020*0Sstevel@tonic-gate 1021*0Sstevel@tonic-gate $c //= $d; 1022*0Sstevel@tonic-gate 1023*0Sstevel@tonic-gateinstead of 1024*0Sstevel@tonic-gate 1025*0Sstevel@tonic-gate $c = $d unless defined $c; 1026*0Sstevel@tonic-gate 1027*0Sstevel@tonic-gateThe operator will have the same precedence and associativity as C<||>. 1028*0Sstevel@tonic-gateA source code patch against the Perl 5.8.1 sources will be available 1029*0Sstevel@tonic-gatein CPAN as F<authors/id/H/HM/HMBRAND/dor-5.8.1.diff>. 1030*0Sstevel@tonic-gate 1031*0Sstevel@tonic-gate=item * 1032*0Sstevel@tonic-gate 1033*0Sstevel@tonic-gateC<unpack()> will default to unpacking the C<$_>. 1034*0Sstevel@tonic-gate 1035*0Sstevel@tonic-gate=item * 1036*0Sstevel@tonic-gate 1037*0Sstevel@tonic-gateVarious Copy-On-Write techniques will be investigated in hopes 1038*0Sstevel@tonic-gateof speeding up Perl. 1039*0Sstevel@tonic-gate 1040*0Sstevel@tonic-gate=item * 1041*0Sstevel@tonic-gate 1042*0Sstevel@tonic-gateCPANPLUS, Inline, and Module::Build will become core modules. 1043*0Sstevel@tonic-gate 1044*0Sstevel@tonic-gate=item * 1045*0Sstevel@tonic-gate 1046*0Sstevel@tonic-gateThe ability to write true lexically scoped pragmas will be introduced. 1047*0Sstevel@tonic-gate 1048*0Sstevel@tonic-gate=item * 1049*0Sstevel@tonic-gate 1050*0Sstevel@tonic-gateWork will continue on the bytecompiler and byteloader. 1051*0Sstevel@tonic-gate 1052*0Sstevel@tonic-gate=item * 1053*0Sstevel@tonic-gate 1054*0Sstevel@tonic-gatev-strings as they currently exist are scheduled to be deprecated. The 1055*0Sstevel@tonic-gatev-less form (1.2.3) will become a "version object" when used with C<use>, 1056*0Sstevel@tonic-gateC<require>, and C<$VERSION>. $^V will also be a "version object" so the 1057*0Sstevel@tonic-gateprintf("%vd",...) construct will no longer be needed. The v-ful version 1058*0Sstevel@tonic-gate(v1.2.3) will become obsolete. The equivalence of strings and v-strings (e.g. 1059*0Sstevel@tonic-gatethat currently 5.8.0 is equal to "\5\8\0") will go away. B<There may be no 1060*0Sstevel@tonic-gatedeprecation warning for v-strings>, though: it is quite hard to detect when 1061*0Sstevel@tonic-gatev-strings are being used safely, and when they are not. 1062*0Sstevel@tonic-gate 1063*0Sstevel@tonic-gate=item * 1064*0Sstevel@tonic-gate 1065*0Sstevel@tonic-gate5.005 Threads Will Be Removed 1066*0Sstevel@tonic-gate 1067*0Sstevel@tonic-gate=item * 1068*0Sstevel@tonic-gate 1069*0Sstevel@tonic-gateThe C<$*> Variable Will Be Removed 1070*0Sstevel@tonic-gate(it was deprecated a long time ago) 1071*0Sstevel@tonic-gate 1072*0Sstevel@tonic-gate=item * 1073*0Sstevel@tonic-gate 1074*0Sstevel@tonic-gatePseudohashes Will Be Removed 1075*0Sstevel@tonic-gate 1076*0Sstevel@tonic-gate=back 1077*0Sstevel@tonic-gate 1078*0Sstevel@tonic-gate=head1 Reporting Bugs 1079*0Sstevel@tonic-gate 1080*0Sstevel@tonic-gateIf you find what you think is a bug, you might check the articles 1081*0Sstevel@tonic-gaterecently posted to the comp.lang.perl.misc newsgroup and the perl 1082*0Sstevel@tonic-gatebug database at http://bugs.perl.org/ . There may also be 1083*0Sstevel@tonic-gateinformation at http://www.perl.com/ , the Perl Home Page. 1084*0Sstevel@tonic-gate 1085*0Sstevel@tonic-gateIf you believe you have an unreported bug, please run the B<perlbug> 1086*0Sstevel@tonic-gateprogram included with your release. Be sure to trim your bug down 1087*0Sstevel@tonic-gateto a tiny but sufficient test case. Your bug report, along with the 1088*0Sstevel@tonic-gateoutput of C<perl -V>, will be sent off to perlbug@perl.org to be 1089*0Sstevel@tonic-gateanalysed by the Perl porting team. You can browse and search 1090*0Sstevel@tonic-gatethe Perl 5 bugs at http://bugs.perl.org/ 1091*0Sstevel@tonic-gate 1092*0Sstevel@tonic-gate=head1 SEE ALSO 1093*0Sstevel@tonic-gate 1094*0Sstevel@tonic-gateThe F<Changes> file for exhaustive details on what changed. 1095*0Sstevel@tonic-gate 1096*0Sstevel@tonic-gateThe F<INSTALL> file for how to build Perl. 1097*0Sstevel@tonic-gate 1098*0Sstevel@tonic-gateThe F<README> file for general stuff. 1099*0Sstevel@tonic-gate 1100*0Sstevel@tonic-gateThe F<Artistic> and F<Copying> files for copyright information. 1101*0Sstevel@tonic-gate 1102*0Sstevel@tonic-gate=cut 1103