in reply to Bizarre copy of ARRAY

It means an AV (array) got put on the stack by some buggy XS code.

use Inline C => <<'__EOI__'; SV* f() { return (SV*)newAV(); } __EOI__ my $x = f(); # Bizarre copy of ARRAY in sassign.

Replies are listed 'Best First'.
Re^2: Bizarre copy of ARRAY
by ikegami (Patriarch) on Mar 20, 2011 at 07:30 UTC

    As it applies in this case, I suspect your version of Perl has a bug in its handling of @{@headers}, which is also buggy. Did you mean @headers? @{$headers}? @{@headers} definitely ain't right.