develooper Front page | perl.perl5.porters | Postings from February 2018

Re: [perl #132776] lvalue+signature example: should not returnread-only value

Thread Previous
From:
Dave Mitchell
Date:
February 20, 2018 09:39
Subject:
Re: [perl #132776] lvalue+signature example: should not returnread-only value
Message ID:
20180220093859.GJ3216@iabyn.com
On Sun, Jan 28, 2018 at 01:39:13AM -0800, slaven@rezic.de wrote:
> A minor nit in perl5.27.8's perldelta.pod: the two examples
> 
> 	sub f :lvalue ($a, $b) { 1 }; # 5.20; 5.28 onwards
> 	sub f ($a, $b) :lvalue { 1 }; # 5.22 - 5.26
> 
> don't work because a read-only value is returned. A complete test script:

Fixed with v5.27.8-346-g2a71223

-- 
"There's something wrong with our bloody ships today, Chatfield."
    -- Admiral Beatty at the Battle of Jutland, 31st May 1916.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About