2009/1/26 Niko Tyni <nt...@debian.org>: > On Fri, Jan 23, 2009 at 08:21:24PM +0000, Marcin Owsiany wrote: >> The following program dies for me on perl v5.8.8 with: >> Can't call method "foo" without a package or object reference at a line 10. >> >> -------------------------------------------------------->8--- >> package A; >> sub new { bless {}, shift } >> sub foo { } >> sub getref { setpgrp() } >> >> package main; >> my $o = A->new; >> # my $r = A::getref; >> # $o->foo($r); >> $o->foo(A::getref); >> -------------------------------------------------------->8--- >> >> However just uncomment the commented lines, and comment the last one, >> and it works! :-O > > Thanks for the report. > > This bug is still present in bleadperl. The attached patch should fix it.
Thanks, applied to bleadperl. I also amended the MANIFEST for the new test file. http://perl5.git.perl.org/perl.git/commitdiff/1f200948c4c45a9bc088451dd377e4ab8733c722 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org