CPAN 1.76's ->get method destroys objects when I use it. This code sample shows that I have a CPAN::Module object prior to ->get and an unrelated filename afterwards. What I especially don't understand is why I'm seeing canon.pl since that's part of the testing package for B::Deobfuscate. Help?

use CPAN; use Data::Dumper; $_ = CPAN::Shell->expandany( 'B::Keywords' ); print Dumper( $_ ); $_->get; print Dumper( $_ );
Going to read /root/.cpan/Metadata Database was generated on Thu, 23 Oct 2003 06:50:15 GMT $VAR1 = bless( { 'ID' => 'B::Keywords', 'RO' => { 'userid' => 'JJORE', 'stats' => 'd', 'stati' => 'n', 'description' => 'Lists of reserved barewor +ds and symbol names', 'CPAN_VERSION' => '0.06', 'chapterid' => ' 2', 'CPAN_FILE' => 'J/JJ/JJORE/B-Keywords-0.06. +tar.gz', 'CPAN_USERID' => 'JJORE', 'statd' => 'b', 'statl' => 'p', 'statp' => 'p' } }, 'CPAN::Module' ); Running get for module B::Keywords CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://archive.progeny.com/CPAN/authors/id/J/JJ/JJORE/B-Keywords-0.06 +.tar.gz CPAN: Digest::MD5 loaded ok CPAN: Compress::Zlib loaded ok Checksum for /root/.cpan/sources/authors/id/J/JJ/JJORE/B-Keywords-0.06 +.tar.gz ok Scanning cache /root/.cpan/build for sizes B-Keywords-0.06 B-Keywords-0.06/SIGNATURE B-Keywords-0.06/LICENSE B-Keywords-0.06/t B-Keywords-0.06/t/1.t B-Keywords-0.06/META.yml B-Keywords-0.06/MANIFEST B-Keywords-0.06/Makefile.PL B-Keywords-0.06/Changes B-Keywords-0.06/lib B-Keywords-0.06/lib/B B-Keywords-0.06/lib/B/Keywords.pm B-Keywords-0.06/MANIFEST.SKIP B-Keywords-0.06/README $VAR1 = 'canon.pl';

In reply to CPAN.pm's ->get method destroys objects by diotalevi

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.