home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / Perl / Non-RPC / Docs / perldelta < prev    next >
Text File  |  1999-04-17  |  39KB  |  1,022 lines

  1. NAME
  2.     perldelta - what's new for perl5.005
  3.  
  4. DESCRIPTION
  5.     This document describes differences between the 5.004 release
  6.     and this one.
  7.  
  8. About the new versioning system
  9.     Perl is now developed on two tracks: a maintenance track that
  10.     makes small, safe updates to released production versions with
  11.     emphasis on compatibility; and a development track that pursues
  12.     more aggressive evolution. Maintenance releases (which should be
  13.     considered production quality) have subversion numbers that run
  14.     from `1' to `49', and development releases (which should be
  15.     considered "alpha" quality) run from `50' to `99'.
  16.  
  17.     Perl 5.005 is the combined product of the new dual-track
  18.     development scheme.
  19.  
  20. Incompatible Changes
  21.   WARNING:  This version is not binary compatible with Perl 5.004.
  22.  
  23.     Starting with Perl 5.004_50 there were many deep and far-
  24.     reaching changes to the language internals. If you have
  25.     dynamically loaded extensions that you built under perl 5.003 or
  26.     5.004, you can continue to use them with 5.004, but you will
  27.     need to rebuild and reinstall those extensions to use them
  28.     5.005. See the INSTALL manpage for detailed instructions on how
  29.     to upgrade.
  30.  
  31.   Default installation structure has changed
  32.  
  33.     The new Configure defaults are designed to allow a smooth
  34.     upgrade from 5.004 to 5.005, but you should read the INSTALL
  35.     manpage for a detailed discussion of the changes in order to
  36.     adapt them to your system.
  37.  
  38.   Perl Source Compatibility
  39.  
  40.     When none of the experimental features are enabled, there should
  41.     be very few user-visible Perl source compatibility issues.
  42.  
  43.     If threads are enabled, then some caveats apply. `@_' and `$_'
  44.     become lexical variables. The effect of this should be largely
  45.     transparent to the user, but there are some boundary conditions
  46.     under which user will need to be aware of the issues. For
  47.     example, `local(@_)' results in a "Can't localize lexical
  48.     variable @_ ..." message. This may be enabled in a future
  49.     version.
  50.  
  51.     Some new keywords have been introduced. These are generally
  52.     expected to have very little impact on compatibility. See the
  53.     New `INIT' keyword manpage, the New `lock' keyword manpage, and
  54.     the "/' operator" entry in the New `qr manpage.
  55.  
  56.     Certain barewords are now reserved. Use of these will provoke a
  57.     warning if you have asked for them with the `-w' switch. See the
  58.     `our' is now a reserved word manpage.
  59.  
  60.   C Source Compatibility
  61.  
  62.     There have been a large number of changes in the internals to
  63.     support the new features in this release.
  64.  
  65.     Core sources now require ANSI C compiler
  66.         An ANSI C compiler is now required to build perl. See
  67.         INSTALL.
  68.  
  69.     All Perl global variables must now be referenced with an explicit prefix
  70.         All Perl global variables that are visible for use by
  71.         extensions now have a `PL_' prefix. New extensions should
  72.         `not' refer to perl globals by their unqualified names. To
  73.         preserve sanity, we provide limited backward compatibility
  74.         for globals that are being widely used like `sv_undef' and
  75.         `na' (which should now be written as `PL_sv_undef', `PL_na'
  76.         etc.)
  77.  
  78.         If you find that your XS extension does not compile anymore
  79.         because a perl global is not visible, try adding a `PL_'
  80.         prefix to the global and rebuild.
  81.  
  82.         It is strongly recommended that all functions in the Perl
  83.         API that don't begin with `perl' be referenced with a
  84.         `Perl_' prefix. The bare function names without the `Perl_'
  85.         prefix are supported with macros, but this support may cease
  86.         in a future release.
  87.  
  88.         See the section on "API LISTING" in the perlguts manpage.
  89.  
  90.     Enabling threads has source compatibility issues
  91.         Perl built with threading enabled requires extensions to use
  92.         the new `dTHR' macro to initialize the handle to access per-
  93.         thread data. If you see a compiler error that talks about
  94.         the variable `thr' not being declared (when building a
  95.         module that has XS code), you need to add `dTHR;' at the
  96.         beginning of the block that elicited the error.
  97.  
  98.         The API function `perl_get_sv("@",FALSE)' should be used
  99.         instead of directly accessing perl globals as `GvSV(errgv)'.
  100.         The API call is backward compatible with existing perls and
  101.         provides source compatibility with threading is enabled.
  102.  
  103.         See the section on "C Source Compatibility" for more
  104.         information.
  105.  
  106.  
  107.   Binary Compatibility
  108.  
  109.     This version is NOT binary compatible with older versions. All
  110.     extensions will need to be recompiled. Further binaries built
  111.     with threads enabled are incompatible with binaries built
  112.     without. This should largely be transparent to the user, as all
  113.     binary incompatible configurations have their own unique
  114.     architecture name, and extension binaries get installed at
  115.     unique locations. This allows coexistence of several
  116.     configurations in the same directory hierarchy. See INSTALL.
  117.  
  118.   Security fixes may affect compatibility
  119.  
  120.     A few taint leaks and taint omissions have been corrected. This
  121.     may lead to "failure" of scripts that used to work with older
  122.     versions. Compiling with -DINCOMPLETE_TAINTS provides a perl
  123.     with minimal amounts of changes to the tainting behavior. But
  124.     note that the resulting perl will have known insecurities.
  125.  
  126.     Oneliners with the `-e' switch do not create temporary files
  127.     anymore.
  128.  
  129.   Relaxed new mandatory warnings introduced in 5.004
  130.  
  131.     Many new warnings that were introduced in 5.004 have been made
  132.     optional. Some of these warnings are still present, but perl's
  133.     new features make them less often a problem. See the New
  134.     Diagnostics manpage.
  135.  
  136.   Licensing
  137.  
  138.     Perl has a new Social Contract for contributors. See
  139.     Porting/Contract.
  140.  
  141.     The license included in much of the Perl documentation has
  142.     changed. Most of the Perl documentation was previously under the
  143.     implicit GNU General Public License or the Artistic License (at
  144.     the user's choice). Now much of the documentation unambigously
  145.     states the terms under which it may be distributed. Those terms
  146.     are in general much less restrictive than the GNU GPL. See the
  147.     perl manpage and the individual perl man pages listed therein.
  148.  
  149. Core Changes
  150.   Threads
  151.  
  152.     WARNING: Threading is considered an experimental feature.
  153.     Details of the implementation may change without notice. There
  154.     are known limitations and some bugs. These are expected to be
  155.     fixed in future versions.
  156.  
  157.     See the README.threads manpage.
  158.  
  159.     Mach cthreads (NEXTSTEP, OPENSTEP, Rhapsody) are now supported
  160.     by the Thread extension.
  161.  
  162.   Compiler
  163.  
  164.     WARNING: The Compiler and related tools are considered
  165.     experimental. Features may change without notice, and there are
  166.     known limitations and bugs. Since the compiler is fully external
  167.     to perl, the default configuration will build and install it.
  168.  
  169.     The Compiler produces three different types of transformations
  170.     of a perl program. The C backend generates C code that captures
  171.     perl's state just before execution begins. It eliminates the
  172.     compile-time overheads of the regular perl interpreter, but the
  173.     run-time performance remains comparatively the same. The CC
  174.     backend generates optimized C code equivalent to the code path
  175.     at run-time. The CC backend has greater potential for big
  176.     optimizations, but only a few optimizations are implemented
  177.     currently. The Bytecode backend generates a platform independent
  178.     bytecode representation of the interpreter's state just before
  179.     execution. Thus, the Bytecode back end also eliminates much of
  180.     the compilation overhead of the interpreter.
  181.  
  182.     The compiler comes with several valuable utilities.
  183.  
  184.     `B::Lint' is an experimental module to detect and warn about
  185.     suspicious code, especially the cases that the `-w' switch does
  186.     not detect.
  187.  
  188.     `B::Deparse' can be used to demystify perl code, and understand
  189.     how perl optimizes certain constructs.
  190.  
  191.     `B::Xref' generates cross reference reports of all definition
  192.     and use of variables, subroutines and formats in a program.
  193.  
  194.     `B::Showlex' show the lexical variables used by a subroutine or
  195.     file at a glance.
  196.  
  197.     `perlcc' is a simple frontend for compiling perl.
  198.  
  199.     See `ext/B/README', the B manpage, and the respective compiler
  200.     modules.
  201.  
  202.   Regular Expressions
  203.  
  204.     Perl's regular expression engine has been seriously overhauled,
  205.     and many new constructs are supported. Several bugs have been
  206.     fixed.
  207.  
  208.     Here is an itemized summary:
  209.  
  210.     Many new and improved optimizations
  211.         Changes in the RE engine:
  212.  
  213.             Unneeded nodes removed;
  214.             Substrings merged together;
  215.             New types of nodes to process (SUBEXPR)* and similar expressions
  216.                 quickly, used if the SUBEXPR has no side effects and matches
  217.                 strings of the same length;
  218.             Better optimizations by lookup for constant substrings;
  219.             Better search for constants substrings anchored by $ ;
  220.  
  221.  
  222.         Changes in Perl code using RE engine:
  223.  
  224.             More optimizations to s/longer/short/;
  225.             study() was not working;
  226.             /blah/ may be optimized to an analogue of index() if $& $` $' not seen;
  227.             Unneeded copying of matched-against string removed;
  228.             Only matched part of the string is copying if $` $' were not seen;
  229.  
  230.  
  231.     Many bug fixes
  232.         Note that only the major bug fixes are listed here. See
  233.         Changes for others.
  234.  
  235.             Backtracking might not restore start of $3.
  236.             No feedback if max count for * or + on "complex" subexpression
  237.                 was reached, similarly (but at compile time) for {3,34567}
  238.             Primitive restrictions on max count introduced to decrease a 
  239.                 possibility of a segfault;
  240.             (ZERO-LENGTH)* could segfault;
  241.             (ZERO-LENGTH)* was prohibited;
  242.             Long REs were not allowed;
  243.             /RE/g could skip matches at the same position after a 
  244.               zero-length match;
  245.  
  246.  
  247.     New regular expression constructs
  248.         The following new syntax elements are supported:
  249.  
  250.             (?<=RE)
  251.             (?<!RE)
  252.             (?{ CODE })
  253.             (?i-x)
  254.             (?i:RE)
  255.             (?(COND)YES_RE|NO_RE)
  256.             (?>RE)
  257.             \z
  258.  
  259.  
  260.     New operator for precompiled regular expressions
  261.         See the "/' operator" entry in the New `qr manpage.
  262.  
  263.     Other improvements
  264.  
  265.             Better debugging output (possibly with colors),
  266.                     even from non-debugging Perl;
  267.             RE engine code now looks like C, not like assembler;
  268.             Behaviour of RE modifiable by `use re' directive;
  269.             Improved documentation;
  270.             Test suite significantly extended;
  271.             Syntax [:^upper:] etc., reserved inside character classes;
  272.  
  273.  
  274.     Incompatible changes
  275.  
  276.             (?i) localized inside enclosing group;
  277.             $( is not interpolated into RE any more;
  278.             /RE/g may match at the same position (with non-zero length)
  279.                 after a zero-length match (bug fix).
  280.  
  281.  
  282.     See the perlre manpage and the perlop manpage.
  283.  
  284.   Improved malloc()
  285.  
  286.     See banner at the beginning of `malloc.c' for details.
  287.  
  288.   Quicksort is internally implemented
  289.  
  290.     Perl now contains its own highly optimized qsort() routine. The
  291.     new qsort() is resistant to inconsistent comparison functions,
  292.     so Perl's `sort()' will not provoke coredumps any more when
  293.     given poorly written sort subroutines. (Some C library
  294.     `qsort()'s that were being used before used to have this
  295.     problem.) In our testing, the new `qsort()' required the minimal
  296.     number of pair-wise compares on average, among all known
  297.     `qsort()' implementations.
  298.  
  299.     See `perlfunc/sort'.
  300.  
  301.   Reliable signals
  302.  
  303.     Perl's signal handling is susceptible to random crashes, because
  304.     signals arrive asynchronously, and the Perl runtime is not
  305.     reentrant at arbitrary times.
  306.  
  307.     However, one experimental implementation of reliable signals is
  308.     available when threads are enabled. See `Thread::Signal'. Also
  309.     see INSTALL for how to build a Perl capable of threads.
  310.  
  311.   Reliable stack pointers
  312.  
  313.     The internals now reallocate the perl stack only at predictable
  314.     times. In particular, magic calls never trigger reallocations of
  315.     the stack, because all reentrancy of the runtime is handled
  316.     using a "stack of stacks". This should improve reliability of
  317.     cached stack pointers in the internals and in XSUBs.
  318.  
  319.   More generous treatment of carriage returns
  320.  
  321.     Perl used to complain if it encountered literal carriage returns
  322.     in scripts. Now they are mostly treated like whitespace within
  323.     program text. Inside string literals and here documents, literal
  324.     carriage returns are ignored if they occur paired with
  325.     linefeeds, or get interpreted as whitespace if they stand alone.
  326.     This behavior means that literal carriage returns in files
  327.     should be avoided. You can get the older, more compatible (but
  328.     less generous) behavior by defining the preprocessor symbol
  329.     `PERL_STRICT_CR' when building perl. Of course, all this has
  330.     nothing whatever to do with how escapes like `\r' are handled
  331.     within strings.
  332.  
  333.     Note that this doesn't somehow magically allow you to keep all
  334.     text files in DOS format. The generous treatment only applies to
  335.     files that perl itself parses. If your C compiler doesn't allow
  336.     carriage returns in files, you may still be unable to build
  337.     modules that need a C compiler.
  338.  
  339.   Memory leaks
  340.  
  341.     `substr', `pos' and `vec' don't leak memory anymore when used in
  342.     lvalue context. Many small leaks that impacted applications that
  343.     embed multiple interpreters have been fixed.
  344.  
  345.   Better support for multiple interpreters
  346.  
  347.     The build-time option `-DMULTIPLICITY' has had many of the
  348.     details reworked. Some previously global variables that should
  349.     have been per-interpreter now are. With care, this allows
  350.     interpreters to call each other. See the `PerlInterp' extension
  351.     on CPAN.
  352.  
  353.   Behavior of local() on array and hash elements is now well-defined
  354.  
  355.     See the section on "Temporary Values via local()" in the perlsub
  356.     manpage.
  357.  
  358.   `%!' is transparently tied to the the Errno manpage module
  359.  
  360.     See the perlvar manpage, and the Errno manpage.
  361.  
  362.   Pseudo-hashes are supported
  363.  
  364.     See the perlref manpage.
  365.  
  366.   `EXPR foreach EXPR' is supported
  367.  
  368.     See the perlsyn manpage.
  369.  
  370.   Keywords can be globally overridden
  371.  
  372.     See the perlsub manpage.
  373.  
  374.   `$^E' is meaningful on Win32
  375.  
  376.     See the perlvar manpage.
  377.  
  378.   `foreach (1..1000000)' optimized
  379.  
  380.     `foreach (1..1000000)' is now optimized into a counting loop. It
  381.     does not try to allocate a 1000000-size list anymore.
  382.  
  383.   `Foo::' can be used as implicitly quoted package name
  384.  
  385.     Barewords caused unintuitive behavior when a subroutine with the
  386.     same name as a package happened to be defined. Thus, `new Foo
  387.     @args', use the result of the call to `Foo()' instead of `Foo'
  388.     being treated as a literal. The recommended way to write
  389.     barewords in the indirect object slot is `new Foo:: @args'. Note
  390.     that the method `new()' is called with a first argument of
  391.     `Foo', not `Foo::' when you do that.
  392.  
  393.   `exists $Foo::{Bar::}' tests existence of a package
  394.  
  395.     It was impossible to test for the existence of a package without
  396.     actually creating it before. Now `exists $Foo::{Bar::}' can be
  397.     used to test if the `Foo::Bar' namespace has been created.
  398.  
  399.   Better locale support
  400.  
  401.     See the perllocale manpage.
  402.  
  403.   Experimental support for 64-bit platforms
  404.  
  405.     Perl5 has always had 64-bit support on systems with 64-bit
  406.     longs. Starting with 5.005, the beginnings of experimental
  407.     support for systems with 32-bit long and 64-bit 'long long'
  408.     integers has been added. If you add -DUSE_LONG_LONG to your
  409.     ccflags in config.sh (or manually define it in perl.h) then perl
  410.     will be built with 'long long' support. There will be many
  411.     compiler warnings, and the resultant perl may not work on all
  412.     systems. There are many other issues related to third-party
  413.     extensions and libraries. This option exists to allow people to
  414.     work on those issues.
  415.  
  416.   prototype() returns useful results on builtins
  417.  
  418.     See the "prototype" entry in the perlfunc manpage.
  419.  
  420.   Extended support for exception handling
  421.  
  422.     `die()' now accepts a reference value, and `$@' gets set to that
  423.     value in exception traps. This makes it possible to propagate
  424.     exception objects. This is an undocumented experimental feature.
  425.  
  426.   Re-blessing in DESTROY() supported for chaining DESTROY() methods
  427.  
  428.     See the "Destructors" entry in the perlobj manpage.
  429.  
  430.   All `printf' format conversions are handled internally
  431.  
  432.     See the "printf" entry in the perlfunc manpage.
  433.  
  434.   New `INIT' keyword
  435.  
  436.     `INIT' subs are like `BEGIN' and `END', but they get run just
  437.     before the perl runtime begins execution. e.g., the Perl
  438.     Compiler makes use of `INIT' blocks to initialize and resolve
  439.     pointers to XSUBs.
  440.  
  441.   New `lock' keyword
  442.  
  443.     The `lock' keyword is the fundamental synchronization primitive
  444.     in threaded perl. When threads are not enabled, it is currently
  445.     a noop.
  446.  
  447.     To minimize impact on source compatibility this keyword is
  448.     "weak", i.e., any user-defined subroutine of the same name
  449.     overrides it, unless a `use Thread' has been seen.
  450.  
  451.   New `qr//' operator
  452.  
  453.     The `qr//' operator, which is syntactically similar to the other
  454.     quote-like operators, is used to create precompiled regular
  455.     expressions. This compiled form can now be explicitly passed
  456.     around in variables, and interpolated in other regular
  457.     expressions. See the perlop manpage.
  458.  
  459.   `our' is now a reserved word
  460.  
  461.     Calling a subroutine with the name `our' will now provoke a
  462.     warning when using the `-w' switch.
  463.  
  464.   Tied arrays are now fully supported
  465.  
  466.     See the Tie::Array manpage.
  467.  
  468.   Tied handles support is better
  469.  
  470.     Several missing hooks have been added. There is also a new base
  471.     class for TIEARRAY implementations. See the Tie::Array manpage.
  472.  
  473.   4th argument to substr
  474.  
  475.     substr() can now both return and replace in one operation. The
  476.     optional 4th argument is the replacement string. See the
  477.     "substr" entry in the perlfunc manpage.
  478.  
  479.   Negative LENGTH argument to splice
  480.  
  481.     splice() with a negative LENGTH argument now work similar to
  482.     what the LENGTH did for substr(). Previously a negative LENGTH
  483.     was treated as 0. See the "splice" entry in the perlfunc
  484.     manpage.
  485.  
  486.   Magic lvalues are now more magical
  487.  
  488.     When you say something like `substr($x, 5) = "hi"', the scalar
  489.     returned by substr() is special, in that any modifications to it
  490.     affect $x. (This is called a 'magic lvalue' because an 'lvalue'
  491.     is something on the left side of an assignment.) Normally, this
  492.     is exactly what you would expect to happen, but Perl uses the
  493.     same magic if you use substr(), pos(), or vec() in a context
  494.     where they might be modified, like taking a reference with `\'
  495.     or as an argument to a sub that modifies `@_'. In previous
  496.     versions, this 'magic' only went one way, but now changes to the
  497.     scalar the magic refers to ($x in the above example) affect the
  498.     magic lvalue too. For instance, this code now acts differently:
  499.  
  500.         $x = "hello";
  501.         sub printit {
  502.         $x = "g'bye";
  503.         print $_[0], "\n";
  504.         }
  505.         printit(substr($x, 0, 5));
  506.  
  507.  
  508.     In previous versions, this would print "hello", but it now
  509.     prints "g'bye".
  510.  
  511.   <> now reads in records
  512.  
  513.     If `$/' is a referenence to an integer, or a scalar that holds
  514.     an integer, <> will read in records instead of lines. For more
  515.     info, see the "$/" entry in the perlvar manpage.
  516.  
  517.   pack() format 'Z' supported
  518.  
  519.     The new format type 'Z' is useful for packing and unpacking
  520.     null-terminated strings. See the section on "pack" in the
  521.     perlfunc manpage.
  522.  
  523. Significant bug fixes
  524.   <HANDLE> on empty files
  525.  
  526.     With `$/' set to `undef', slurping an empty file returns a
  527.     string of zero length (instead of `undef', as it used to) for
  528.     the first time the HANDLE is read. Subsequent reads yield
  529.     `undef'.
  530.  
  531.     This means that the following will append "foo" to an empty file
  532.     (it used to not do anything before):
  533.  
  534.         perl -0777 -pi -e 's/^/foo/' empty_file
  535.  
  536.  
  537.     Note that the behavior of:
  538.  
  539.         perl -pi -e 's/^/foo/' empty_file
  540.  
  541.  
  542.     is unchanged (it continues to leave the file empty).
  543.  
  544. Supported Platforms
  545.     Configure has many incremental improvements. Site-wide policy
  546.     for building perl can now be made persistent, via Policy.sh.
  547.     Configure also records the command-line arguments used in
  548.     config.sh.
  549.  
  550.   New Platforms
  551.  
  552.     BeOS is now supported. See the README.beos manpage.
  553.  
  554.     DOS is now supported under the DJGPP tools. See the README.dos
  555.     manpage.
  556.  
  557.     GNU/Hurd is now supported.
  558.  
  559.     MiNT is now supported. See the README.mint manpage.
  560.  
  561.     MPE/iX is now supported. See the README.mpeix manpage.
  562.  
  563.     MVS (aka OS390, aka Open Edition) is now supported. See the
  564.     README.os390 manpage.
  565.  
  566.     Stratus VOS is now supported. See the README.vos manpage.
  567.  
  568.   Changes in existing support
  569.  
  570.     Win32 support has been vastly enhanced. Support for Perl Object,
  571.     a C++ encapsulation of Perl. GCC and EGCS are now supported on
  572.     Win32. See README.win32, aka the perlwin32 manpage.
  573.  
  574.     VMS configuration system has been rewritten. See the README.vms
  575.     manpage.
  576.  
  577.     The hints files for most Unix platforms have seen incremental
  578.     improvements.
  579.  
  580. Modules and Pragmata
  581.   New Modules
  582.  
  583.     B   Perl compiler and tools. See the B manpage.
  584.  
  585.     Data::Dumper
  586.         A module to pretty print Perl data. See the Data::Dumper
  587.         manpage.
  588.  
  589.     Dumpvalue
  590.         A module to dump perl values to the screen. See the
  591.         Dumpvalue manpage.
  592.  
  593.     Errno
  594.         A module to look up errors more conveniently. See the Errno
  595.         manpage.
  596.  
  597.     File::Spec
  598.         A portable API for file operations.
  599.  
  600.     ExtUtils::Installed
  601.         Query and manage installed modules.
  602.  
  603.     ExtUtils::Packlist
  604.         Manipulate .packlist files.
  605.  
  606.     Fatal
  607.         Make functions/builtins succeed or die.
  608.  
  609.     IPC::SysV
  610.         Constants and other support infrastructure for System V IPC
  611.         operations in perl.
  612.  
  613.     Test
  614.         A framework for writing testsuites.
  615.  
  616.     Tie::Array
  617.         Base class for tied arrays.
  618.  
  619.     Tie::Handle
  620.         Base class for tied handles.
  621.  
  622.     Thread
  623.         Perl thread creation, manipulation, and support.
  624.  
  625.     attrs
  626.         Set subroutine attributes.
  627.  
  628.     fields
  629.         Compile-time class fields.
  630.  
  631.     re  Various pragmata to control behavior of regular expressions.
  632.  
  633.  
  634.   Changes in existing modules
  635.  
  636.     Benchmark
  637.         You can now run tests for *n* seconds instead of guessing
  638.         the right number of tests to run: e.g. timethese(-5, ...)
  639.         will run each of the codes for at least 5 CPU seconds. Zero
  640.         as the "number of repetitions" means "for at least 3 CPU
  641.         seconds". The output format has also changed. For example:
  642.  
  643.         use Benchmark;$x=3;timethese(-
  644.         5,{a=>sub{$x*$x},b=>sub{$x**2}})
  645.  
  646.         will now output something like this:
  647.  
  648.         Benchmark: running a, b, each for at least 5 CPU seconds...
  649.         a: 5 wallclock secs ( 5.77 usr + 0.00 sys = 5.77 CPU) @
  650.         200551.91/s (n=1156516) b: 4 wallclock secs ( 5.00 usr +
  651.         0.02 sys = 5.02 CPU) @ 159605.18/s (n=800686)
  652.  
  653.         New features: "each for at least N CPU seconds...",
  654.         "wallclock secs", and the "@ operations/CPU second
  655.         (n=operations)".
  656.  
  657.     Carp
  658.         Carp has a new function cluck(). cluck() warns, like carp(),
  659.         but also adds a stack backtrace to the error message, like
  660.         confess().
  661.  
  662.     CGI CGI has been updated to version 2.42.
  663.  
  664.     Fcntl
  665.         More Fcntl constants added: F_SETLK64, F_SETLKW64,
  666.         O_LARGEFILE for large (more than 4G) file access (the 64-bit
  667.         support is not yet working, though, so no need to get overly
  668.         excited), Free/Net/OpenBSD locking behaviour flags F_FLOCK,
  669.         F_POSIX, Linux F_SHLCK, and O_ACCMODE: the mask of O_RDONLY,
  670.         O_WRONLY, and O_RDWR.
  671.  
  672.     Math::Complex
  673.         The accessor methods Re, Im, arg, abs, rho, and theta, can
  674.         now also act as mutators (accessor $z->Re(), mutator $z-
  675.         >Re(3)).
  676.  
  677.     Math::Trig
  678.         A little bit of radial trigonometry (cylindrical and
  679.         spherical) added: radial coordinate conversions and the
  680.         great circle distance.
  681.  
  682.     POSIX
  683.         POSIX now has its own platform-specific hints files.
  684.  
  685.     DB_File
  686.         DB_File supports version 2.x of Berkeley DB. See
  687.         `ext/DB_File/Changes'.
  688.  
  689.     MakeMaker
  690.         MakeMaker now supports writing empty makefiles, provides a
  691.         way to specify that site umask() policy should be honored.
  692.         There is also better support for manipulation of .packlist
  693.         files, and getting information about installed modules.
  694.  
  695.         Extensions that have both architecture-dependent and
  696.         architecture-independent files are now always installed
  697.         completely in the architecture-dependent locations.
  698.         Previously, the shareable parts were shared both across
  699.         architectures and across perl versions and were therefore
  700.         liable to be overwritten with newer versions that might have
  701.         subtle incompatibilities.
  702.  
  703.     CPAN
  704.         See <perlmodinstall> and the CPAN manpage.
  705.  
  706.     Cwd Cwd::cwd is faster on most platforms.
  707.  
  708.     Benchmark
  709.         Keeps better time.
  710.  
  711.  
  712. Utility Changes
  713.     `h2ph' and related utilities have been vastly overhauled.
  714.  
  715.     `perlcc', a new experimental front end for the compiler is
  716.     available.
  717.  
  718.     The crude GNU `configure' emulator is now called `configure.gnu'
  719.     to avoid trampling on `Configure' under case-insensitive
  720.     filesystems.
  721.  
  722.     `perldoc' used to be rather slow. The slower features are now
  723.     optional. In particular, case-insensitive searches need the `-i'
  724.     switch, and recursive searches need `-r'. You can set these
  725.     switches in the `PERLDOC' environment variable to get the old
  726.     behavior.
  727.  
  728. Documentation Changes
  729.     Config.pm now has a glossary of variables.
  730.  
  731.     Porting/patching.pod has detailed instructions on how to create
  732.     and submit patches for perl.
  733.  
  734.     the perlport manpage specifies guidelines on how to write
  735.     portably.
  736.  
  737.     the perlmodinstall manpage describes how to fetch and install
  738.     modules from `CPAN' sites.
  739.  
  740.     Some more Perl traps are documented now. See the perltrap
  741.     manpage.
  742.  
  743.     the perlopentut manpage gives a tutorial on using open().
  744.  
  745.     the perlreftut manpage gives a tutorial on references.
  746.  
  747.     the perlthrtut manpage gives a tutorial on threads.
  748.  
  749. New Diagnostics
  750.     Ambiguous call resolved as CORE::%s(), qualify as such or use &
  751.         (W) A subroutine you have declared has the same name as a
  752.         Perl keyword, and you have used the name without
  753.         qualification for calling one or the other. Perl decided to
  754.         call the builtin because the subroutine is not imported.
  755.  
  756.         To force interpretation as a subroutine call, either put an
  757.         ampersand before the subroutine name, or qualify the name
  758.         with its package. Alternatively, you can import the
  759.         subroutine (or pretend that it's imported with the `use
  760.         subs' pragma).
  761.  
  762.         To silently interpret it as the Perl operator, use the
  763.         `CORE::' prefix on the operator (e.g. `CORE::log($x)') or by
  764.         declaring the subroutine to be an object method (see the
  765.         attrs manpage).
  766.  
  767.     Bad index while coercing array into hash
  768.         (F) The index looked up in the hash found as the 0'th
  769.         element of a pseudo-hash is not legal. Index values must be
  770.         at 1 or greater. See the perlref manpage.
  771.  
  772.     Bareword "%s" refers to nonexistent package
  773.         (W) You used a qualified bareword of the form `Foo::', but
  774.         the compiler saw no other uses of that namespace before that
  775.         point. Perhaps you need to predeclare a package?
  776.  
  777.     Can't call method "%s" on an undefined value
  778.         (F) You used the syntax of a method call, but the slot
  779.         filled by the object reference or package name contains an
  780.         undefined value. Something like this will reproduce the
  781.         error:
  782.  
  783.             $BADREF = 42;
  784.             process $BADREF 1,2,3;
  785.             $BADREF->process(1,2,3);
  786.  
  787.  
  788.     Can't check filesystem of script "%s" for nosuid
  789.         (P) For some reason you can't check the filesystem of the
  790.         script for nosuid.
  791.  
  792.     Can't coerce array into hash
  793.         (F) You used an array where a hash was expected, but the
  794.         array has no information on how to map from keys to array
  795.         indices. You can do that only with arrays that have a hash
  796.         reference at index 0.
  797.  
  798.     Can't goto subroutine from an eval-string
  799.         (F) The "goto subroutine" call can't be used to jump out of
  800.         an eval "string". (You can use it to jump out of an eval
  801.         {BLOCK}, but you probably don't want to.)
  802.  
  803.     Can't localize pseudo-hash element
  804.         (F) You said something like `local $ar->{'key'}', where $ar
  805.         is a reference to a pseudo-hash. That hasn't been
  806.         implemented yet, but you can get a similar effect by
  807.         localizing the corresponding array element directly --
  808.         `local $ar->[$ar->[0]{'key'}]'.
  809.  
  810.     Can't use %%! because Errno.pm is not available
  811.         (F) The first time the %! hash is used, perl automatically
  812.         loads the Errno.pm module. The Errno module is expected to
  813.         tie the %! hash to provide symbolic names for `$!' errno
  814.         values.
  815.  
  816.     Cannot find an opnumber for "%s"
  817.         (F) A string of a form `CORE::word' was given to
  818.         prototype(), but there is no builtin with the name `word'.
  819.  
  820.     Character class syntax [. .] is reserved for future extensions
  821.         (W) Within regular expression character classes ([]) the
  822.         syntax beginning with "[." and ending with ".]" is reserved
  823.         for future extensions. If you need to represent those
  824.         character sequences inside a regular expression character
  825.         class, just quote the square brackets with the backslash:
  826.         "\[." and ".\]".
  827.  
  828.     Character class syntax [: :] is reserved for future extensions
  829.         (W) Within regular expression character classes ([]) the
  830.         syntax beginning with "[:" and ending with ":]" is reserved
  831.         for future extensions. If you need to represent those
  832.         character sequences inside a regular expression character
  833.         class, just quote the square brackets with the backslash:
  834.         "\[:" and ":\]".
  835.  
  836.     Character class syntax [= =] is reserved for future extensions
  837.         (W) Within regular expression character classes ([]) the
  838.         syntax beginning with "[=" and ending with "=]" is reserved
  839.         for future extensions. If you need to represent those
  840.         character sequences inside a regular expression character
  841.         class, just quote the square brackets with the backslash:
  842.         "\[=" and "=\]".
  843.  
  844.     %s: Eval-group in insecure regular expression
  845.         (F) Perl detected tainted data when trying to compile a
  846.         regular expression that contains the `(?{ ... })' zero-width
  847.         assertion, which is unsafe. See the "(?{ code })" entry in
  848.         the perlre manpage, and the perlsec manpage.
  849.  
  850.     %s: Eval-group not allowed, use re 'eval'
  851.         (F) A regular expression contained the `(?{ ... })' zero-
  852.         width assertion, but that construct is only allowed when the
  853.         `use re 'eval'' pragma is in effect. See the "(?{ code })"
  854.         entry in the perlre manpage.
  855.  
  856.     %s: Eval-group not allowed at run time
  857.         (F) Perl tried to compile a regular expression containing
  858.         the `(?{ ... })' zero-width assertion at run time, as it
  859.         would when the pattern contains interpolated values. Since
  860.         that is a security risk, it is not allowed. If you insist,
  861.         you may still do this by explicitly building the pattern
  862.         from an interpolated string at run time and using that in an
  863.         eval(). See the "(?{ code })" entry in the perlre manpage.
  864.  
  865.     Explicit blessing to '' (assuming package main)
  866.         (W) You are blessing a reference to a zero length string.
  867.         This has the effect of blessing the reference into the
  868.         package main. This is usually not what you want. Consider
  869.         providing a default target package, e.g. bless($ref, $p ||
  870.         'MyPackage');
  871.  
  872.     Illegal hex digit ignored
  873.         (W) You may have tried to use a character other than 0 - 9
  874.         or A - F in a hexadecimal number. Interpretation of the
  875.         hexadecimal number stopped before the illegal character.
  876.  
  877.     No such array field
  878.         (F) You tried to access an array as a hash, but the field
  879.         name used is not defined. The hash at index 0 should map all
  880.         valid field names to array indices for that to work.
  881.  
  882.     No such field "%s" in variable %s of type %s
  883.         (F) You tried to access a field of a typed variable where
  884.         the type does not know about the field name. The field names
  885.         are looked up in the %FIELDS hash in the type package at
  886.         compile time. The %FIELDS hash is usually set up with the
  887.         'fields' pragma.
  888.  
  889.     Out of memory during ridiculously large request
  890.         (F) You can't allocate more than 2^31+"small amount" bytes.
  891.         This error is most likely to be caused by a typo in the Perl
  892.         program. e.g., `$arr[time]' instead of `$arr[$time]'.
  893.  
  894.     Range iterator outside integer range
  895.         (F) One (or both) of the numeric arguments to the range
  896.         operator ".." are outside the range which can be represented
  897.         by integers internally. One possible workaround is to force
  898.         Perl to use magical string increment by prepending "0" to
  899.         your numbers.
  900.  
  901.     Recursive inheritance detected while looking for method '%s' in package '%s'
  902.         (F) More than 100 levels of inheritance were encountered
  903.         while invoking a method. Probably indicates an unintended
  904.         loop in your inheritance hierarchy.
  905.  
  906.     Reference found where even-sized list expected
  907.         (W) You gave a single reference where Perl was expecting a
  908.         list with an even number of elements (for assignment to a
  909.         hash). This usually means that you used the anon hash
  910.         constructor when you meant to use parens. In any case, a
  911.         hash requires key/value pairs.
  912.  
  913.             %hash = { one => 1, two => 2, };   # WRONG
  914.             %hash = [ qw/ an anon array / ];   # WRONG
  915.             %hash = ( one => 1, two => 2, );   # right
  916.             %hash = qw( one 1 two 2 );                 # also fine
  917.  
  918.  
  919.     Undefined value assigned to typeglob
  920.         (W) An undefined value was assigned to a typeglob, a la
  921.         `*foo = undef'. This does nothing. It's possible that you
  922.         really mean `undef *foo'.
  923.  
  924.     Use of reserved word "%s" is deprecated
  925.         (D) The indicated bareword is a reserved word. Future
  926.         versions of perl may use it as a keyword, so you're better
  927.         off either explicitly quoting the word in a manner
  928.         appropriate for its context of use, or using a different
  929.         name altogether. The warning can be suppressed for
  930.         subroutine names by either adding a `&' prefix, or using a
  931.         package qualifier, e.g. `&our()', or `Foo::our()'.
  932.  
  933.     perl: warning: Setting locale failed.
  934.         (S) The whole warning message will look something like:
  935.  
  936.                perl: warning: Setting locale failed.
  937.                perl: warning: Please check that your locale settings:
  938.                        LC_ALL = "En_US",
  939.                        LANG = (unset)
  940.                    are supported and installed on your system.
  941.                perl: warning: Falling back to the standard locale ("C").
  942.  
  943.  
  944.         Exactly what were the failed locale settings varies. In the
  945.         above the settings were that the LC_ALL was "En_US" and the
  946.         LANG had no value. This error means that Perl detected that
  947.         you and/or your system administrator have set up the so-
  948.         called variable system but Perl could not use those
  949.         settings. This was not dead serious, fortunately: there is a
  950.         "default locale" called "C" that Perl can and will use, the
  951.         script will be run. Before you really fix the problem,
  952.         however, you will get the same error message each time you
  953.         run Perl. How to really fix the problem can be found in the
  954.         section on "LOCALE PROBLEMS" in the perllocale manpage.
  955.  
  956.  
  957. Obsolete Diagnostics
  958.     Can't mktemp()
  959.         (F) The mktemp() routine failed for some reason while trying
  960.         to process a -e switch. Maybe your /tmp partition is full,
  961.         or clobbered.
  962.  
  963.         Removed because -e doesn't use temporary files any more.
  964.  
  965.     Can't write to temp file for -e: %s
  966.         (F) The write routine failed for some reason while trying to
  967.         process a -e switch. Maybe your /tmp partition is full, or
  968.         clobbered.
  969.  
  970.         Removed because -e doesn't use temporary files any more.
  971.  
  972.     Cannot open temporary file
  973.         (F) The create routine failed for some reason while trying
  974.         to process a -e switch. Maybe your /tmp partition is full,
  975.         or clobbered.
  976.  
  977.         Removed because -e doesn't use temporary files any more.
  978.  
  979.     regexp too big
  980.         (F) The current implementation of regular expressions uses
  981.         shorts as address offsets within a string. Unfortunately
  982.         this means that if the regular expression compiles to longer
  983.         than 32767, it'll blow up. Usually when you want a regular
  984.         expression this big, there is a better way to do it with
  985.         multiple statements. See the perlre manpage.
  986.  
  987.  
  988. Configuration Changes
  989.     You can use "Configure -Uinstallusrbinperl" which causes
  990.     installperl to skip installing perl also as /usr/bin/perl. This
  991.     is useful if you prefer not to modify /usr/bin for some reason
  992.     or another but harmful because many scripts assume to find Perl
  993.     in /usr/bin/perl.
  994.  
  995. BUGS
  996.     If you find what you think is a bug, you might check the headers
  997.     of recently posted articles in the comp.lang.perl.misc
  998.     newsgroup. There may also be information at
  999.     http://www.perl.com/perl/, the Perl Home Page.
  1000.  
  1001.     If you believe you have an unreported bug, please run the
  1002.     perlbug program included with your release. Make sure you trim
  1003.     your bug down to a tiny but sufficient test case. Your bug
  1004.     report, along with the output of `perl -V', will be sent off to
  1005.     <perlbug@perl.com> to be analysed by the Perl porting team.
  1006.  
  1007. SEE ALSO
  1008.     The Changes file for exhaustive details on what changed.
  1009.  
  1010.     The INSTALL file for how to build Perl.
  1011.  
  1012.     The README file for general stuff.
  1013.  
  1014.     The Artistic and Copying files for copyright information.
  1015.  
  1016. HISTORY
  1017.     Written by Gurusamy Sarathy <gsar@umich.edu>, with many
  1018.     contributions from The Perl Porters.
  1019.  
  1020.     Send omissions or corrections to <perlbug@perl.com>.
  1021.  
  1022.