Yes, but if pp -e "print 1..99" doesn't include them, I see no reason why pp -e "use strict" should. The purpose of PAR::Packer is to only include the modules needed by the particular perl program you are packing, not your entire build tree. Or so I thought.

Based on your hint about scandeps, I tried it from the command line (though I'm not sure it would be doing the exact same thing as what pp uses it for) and it behaves similarly, but give some error messages about not being able to connect to CPAN sites to download stuff:

C:\strawberry_perl_51801>scandeps -e "use strict" [ERROR] Fetching of 'ftp://ftp.cpan.org/pub/CPAN/authors/01mailrc.txt. +gz' failed: Ftp creation failed: Net::FTP: connect : 10060 [ERROR] Fetching of 'http://www.cpan.org/authors/01mailrc.txt.gz' fail +ed: Could not open socket to 'www.cpan.org', '' [ERROR] Fetching of 'ftp://cpan.hexten.net/authors/01mailrc.txt.gz' fa +iled: Ftp creation failed: Net::FTP: connect: 1006 0 [ERROR] Fetching of 'ftp://cpan.cpantesters.org/CPAN/authors/01mailrc. +txt.gz' failed: Ftp creation failed: Net::FTP: con nect: 10060 [ERROR] Fetching of 'ftp://ftp.funet.fi/pub/languages/perl/CPAN/author +s/01mailrc.txt.gz' failed: Ftp creation failed: Ne t::FTP: connect: 10060 [ERROR] Fetch failed: host list exhausted -- are you connected today? [ERROR] Couldn't fetch '01mailrc.txt.gz' [ERROR] Fetching of 'ftp://ftp.cpan.org/pub/CPAN/modules/03modlist.dat +a.gz' failed: Ftp creation failed: Net::FTP: conne ct: 10060 [ I ctrl-c'd it at this point ]
I am behind firewalls where I work, so I'm not even sure I can open this up to allow FTP or HTTP to work. But I have to ask why it needs to consult anything other than the local perl install tree for module dependency info? Shouldn't it just be looking recursively at "use" statements?

In reply to Re^4: PAR::Packer pp command including too many modules by g0177325
in thread PAR::Packer pp command including too many modules by g0177325

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.