une04 has asked for the wisdom of the Perl Monks concerning the following question:

Hello everybody! I made a test.pl script and packed it with command: pp -o test test.pl. Then I tried unzip test and only files I saw was main.pl and test.pl. But what about perl modules that par archived, why they were not unpacked or how can I extract all files in archive? Thanks!

Replies are listed 'Best First'.
Re: no modules unziped from par archive
by Corion (Patriarch) on Jul 23, 2012 at 08:29 UTC

    Have you looked at the -x option in pp?

      # pp -x test /usr/local/bin/pp: Binary 'test' sure doesn't smell like perl source! Can't locate object method "maybe_command" via package "MM" (perhaps you forgot to load "MM"?) at /usr/local/share/perl5/PAR/Packer. pm line 1561.

        Have you read the error message? Have you read the documentation for the pp command I linked to?

        Why did you leave out the -o option?

        As per the documentation, pp runs against the perl source, not the package it creates. pp -x test.pl

Re: no modules unziped from par archive
by marto (Cardinal) on Jul 23, 2012 at 08:31 UTC

    Do ls -ltr or dir /od (depending on which OS you're using), you should see the appropriate files/directories created such as lib and so on. If in doubt create a temporary directory, copy test into it and unzip again, then list the contents of the directory.

      unzip test creates the following:
      MANIFEST
      META.yml
      /script/main.pl
      /script/test.pl

        It would be wise to read and understand pp, PAR::FAQ and PAR::Tutorial. If you still have problems, if possible post the code in question.

Re: no modules unziped from par archive
by Anonymous Monk on Jul 24, 2012 at 07:53 UTC