=head1 NAME
perl591delta - what is new for perl v5.9.1
=head1 DESCRIPTION
This document describes differences between the 5.9.0 and the 5.9.1
development releases. See L for the differences between
5.8.0 and 5.9.0.
=head1 Incompatible Changes
=head2 substr() lvalues are no longer fixed-length
The lvalues returned by the three argument form of substr() used to be a
"fixed length window" on the original string. In some cases this could
cause surprising action at distance or other undefined behaviour. Now the
length of the window adjusts itself to the length of the string assigned to
it.
=head2 The C<:unique> attribute is only meaningful for globals
Now applying C<:unique> to lexical variables and to subroutines will
result in a compilation error.
=head1 Core Enhancements
=head2 Lexical C<$_>
The default variable C<$_> can now be lexicalized, by declaring it like
any other lexical variable, with a simple
my $_;
The operations that default on C<$_> will use the lexically-scoped
version of C<$_> when it exists, instead of the global C<$_>.
In a C