in reply to Re: One piece of code, two mysteries!
in thread One piece of code, two mysteries! (UPDATED.)

ok, second take, this returns something right
print "@input"; ### LINE A ### return my @foo = @input;

1 2 1 2 1 2 3 1 2 3 1 2 3 4 1 2 3 4

i say its a bug in threads::shared, its undefing when it shouldn't

threads: 1.86 threads::shared: 1.4 C:\perl\5.14.1\bin\MSWin32-x86-multi-thread\perl.exe