Closed p5pRT closed 20 years ago
The script below gives different output when run with -d eg
$ perl /tmp/tst AAA 1 2 3 4 123 1 2 3 4 123 1 2 3 4
$ perl -d -e 1 DB\<1> do "/tmp/tst"; AAA 1 2 3 4 123 1 2 3 4 AAA 1 2 3 4
This only happens when perl is compiled with threading enabled.
--%\<----%\<-- /tmp/tst --%\<----%\<----%\<--
package AAA;
sub import { print join(" "\,@_\,"\n"); shift; unshift @_\, '123'; print join(" "\,@_\,"\n"); goto &{BBB->can('import')}; }
package BBB;
sub import { print join(" "\,@_\,"\n"); }
package;
AAA->import(1\,2\,3\,4);
Migrated from rt.perl.org#941 (status was 'resolved')
Searchable as RT941$