Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
I'm trying to pack some modules with App::FatPacker on a Ubuntu 12.4 VM with perl 5.14.2, and I'm running into what looks like a bug in the module.

The first command in the fatpacker synopsis (fatpack trace runs without error. When I run fatpack packlists-for `cat fatpacker.trace` >packlists, I get the following error message: Use of uninitialized value $_ in hash element at /usr/local/share/perl/5.14.2/App/ line 110, <> line 42.

Line 110 of is this: my %found; @found{map +($pack_rev{$INC{$_}}||()), @targets} = ();

It's part of this sub:

sub packlists_containing { my ($self, $targets) = @_; my @targets = @$targets; require $_ for @targets; my @search = grep -d $_, map catdir($_, 'auto'), @INC; my %pack_rev; my $cwd = cwd; find(sub { return unless $_ eq '.packlist' && -f $_; $pack_rev{$_} = $File::Find::name for lines_of $File::Find::name; }, @search); chdir($cwd) or die "Couldn't chdir back to ${cwd} after find: $!"; my %found; @found{map +($pack_rev{$INC{$_}}||()), @targets} = (); sort keys %found; }
This is just too tricky for me to troubleshoot. Should I install an earlier version of Ubuntu (years ago, I managed to get App::FatPacker to work on Ubuntu 8.04)?


I did some further testing. A test script that does not load any CPAN modules was processed by fatpacker without errors. The packed script was generated correctly.

The actual script I need to process loads Spreadsheet::WriteExcel and Spreadsheet::ParseExcel::Simple, so these are the two modules fatpacker would need to inline.

The fatpacker.trace file is as follows: List/ Spreadsheet/ParseExcel/ /usr/lib/perl/5.14/auto/POSIX/ Tie/ Spreadsheet/WriteExcel/ Spreadsheet/ Spreadsheet/WriteExcel/ Scalar/ Spreadsheet/ParseExcel/ Spreadsheet/WriteExcel/ File/ File/ warnings/ Spreadsheet/ParseExcel/ Spreadsheet/ParseExcel/ Spreadsheet/WriteExcel/ Spreadsheet/WriteExcel/ File/Spec/ Exporter/ Spreadsheet/WriteExcel/ Spreadsheet/WriteExcel/ IO/ Getopt/ Spreadsheet/ParseExcel/ Time/ Spreadsheet/ParseExcel/ unicore/ unicore/To/ Spreadsheet/ /usr/lib/perl/5.14/auto/POSIX/autosplit.ix OLE/ IO/ File/ Spreadsheet/WriteExcel/ Digest/Perl/ File/ Crypt/ Spreadsheet/ParseExcel/ Spreadsheet/ParseExcel/ IO/

In reply to Bug in App::FatPacker? by elef

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!
  • 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, 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, 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.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (3)
    As of 2015-10-09 05:25 GMT
    Find Nodes?
      Voting Booth?

      Does Humor Belong in Programming?

      Results (233 votes), past polls