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