in reply to Re: CPAN.pm's ->get method destroys objects
in thread CPAN.pm's ->get method destroys objects

Ah I see. The original code went $_->get for @packages; so I kept the sense of that by just assigning to $_ in my example. That is indeed the problem. Substituting in  for my $pkg ( @packages ) { $pkg->get } corrected the problem.