develooper Front page | perl.perl5.porters | Postings from September 2013

Re: [perl #119797] lvalue sub shows "Bizarre copy of ARRAY in blockexit" in very specific case.

Thread Previous | Thread Next
From:
Konrad Borowski
Date:
September 16, 2013 07:18
Subject:
Re: [perl #119797] lvalue sub shows "Bizarre copy of ARRAY in blockexit" in very specific case.
Message ID:
1379254132.32490.22190805.23B7211A@webmail.messagingengine.com
On Sun, Sep 15, 2013, at 03:21 PM, James E Keenan via RT wrote:
> 1. I cannot reproduce the error you cite.  I cannot generate this error:
>  ""Bizarre copy of ARRAY in block exit".
> 
> 2. Did you try running your program with 'use strict; use warnings;'? 
> If so, you would have gotten messages that indicated problematic code.
> 
> 3. Did you try rewriting your program to name the subroutine something
> other than 'array'?  That only made for a more confusing bug report.

Yes, I used "use strict" and "use warnings", but it changes nothing. I
can reproduce it using perlbot on Freenode (Perl 5.018001).

<GlitchMr> eval: sub array : lvalue { if (@array) {} else { @array
} } (array) = ()
<perlbot> GlitchMr: ERROR: Bizarre copy of ARRAY in block exit at (eval
1833) line 1.

I can also reproduce it on Codepad (using old version, 5.008, but it
confirms that this bug existed here for here for a long time) -
<http://codepad.org/x0KwLtUJ> (it says leave, but I blame old Perl
version), and ideone (with Perl 5.016002) - <http://ideone.com/02TLL7>.

Thread Previous | Thread Next


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