But, I do get what you mean. In the docs for 5.10 I just read about the new lexical $_ that locally overrides the global of the same name.

I personally believe that I can now say() it: I've been waiting for this for quite a lot of time:

C:\temp>cat 510.pl #!/usr/bin/perl use 5.010; use strict; use warnings; my @x=1..3; say for map { sub {$_} } @x; say for map { my $n=$_; sub {$n} } @x; { my $_; say for map { sub {$_} } @x; } __END__ C:\temp>\programmi\perl510\bin\perl 510.pl CODE(0x184fcbc) CODE(0x184fcbc) CODE(0x184fcbc) CODE(0x229dbc) CODE(0x229e6c) CODE(0x182a2fc) CODE(0x229dbc) CODE(0x182a0cc) CODE(0x182a14c)

Update: I also notice in the delta manpage the remark that "substr() lvalues are no longer fixed-length." I believe it was you who talked (to me) about substr() lvalues in the first place, and about the fixed length limitation.


In reply to Re^8: Why should I use perl 5.10? by blazar
in thread Why should I use perl 5.10? by saintmike

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.