Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

no modules unziped from par archive

by une04 (Initiate)
on Jul 23, 2012 at 08:24 UTC ( [id://983125]=perlquestion: print w/replies, xml ) Need Help??

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://983125]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-26 08:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found