9f5b628e4e5d073143257ee3dbb328e0602f613f
[p5sagit/p5-mst-13.2.git] / pod / perl591delta.pod
1 =head1 NAME
2
3 perldelta - what is new for perl v5.9.1
4
5 =head1 DESCRIPTION
6
7 This document describes differences between the 5.9.0 release and
8 the 5.9.1 release.
9
10 =head1 Incompatible Changes
11
12 =head1 Core Enhancements
13
14 =head2 Tied hashes in scalar context
15
16 As of perl 5.8.2, tied hashes did not return anything useful in scalar
17 context, for example when used as boolean tests:
18
19         if (%tied_hash) { ... }
20
21 The old nonsensical behaviour was always to return false,
22 regardless of whether the hash is empty or has elements.
23
24 There is now an interface for the implementors of tied hashes to implement
25 the behaviour of a hash in scalar context, via the SCALAR method (see
26 L<perltie>).  Without a SCALAR method, perl will try to guess whether
27 the hash is empty, by testing if it's inside an iteration (in this case
28 it can't be empty) or by calling FIRSTKEY.
29
30 =head1 Modules and Pragmata
31
32 =head1 Utility Changes
33
34 C<find2perl> now assumes C<-print> as a default action. Previously, it
35 needed to be specified explicitly.
36
37 =head1 New Documentation
38
39 =head1 Performance Enhancements
40
41 =head1 Installation and Configuration Improvements
42
43 =head1 Selected Bug Fixes
44
45 =head1 New or Changed Diagnostics
46
47 =head1 Changed Internals
48
49 =head1 New Tests
50
51 =head1 Known Problems
52
53 =head1 Platform Specific Problems
54
55 =head1 Reporting Bugs
56
57 If you find what you think is a bug, you might check the articles
58 recently posted to the comp.lang.perl.misc newsgroup and the perl
59 bug database at http://bugs.perl.org/ .  There may also be
60 information at http://www.perl.com/ , the Perl Home Page.
61
62 If you believe you have an unreported bug, please run the B<perlbug>
63 program included with your release.  Be sure to trim your bug down
64 to a tiny but sufficient test case.  Your bug report, along with the
65 output of C<perl -V>, will be sent off to perlbug@perl.org to be
66 analysed by the Perl porting team.
67
68 =head1 SEE ALSO
69
70 The F<Changes> file for exhaustive details on what changed.
71
72 The F<INSTALL> file for how to build Perl.
73
74 The F<README> file for general stuff.
75
76 The F<Artistic> and F<Copying> files for copyright information.
77
78 =cut