use Perl
search use Perl
 
All the Perl that's Practical to Extract and Report
 
 

PAR: A cross between JAR and Perl2exe/PerlApp
posted by Simon on 2002.11.02 17:02   
Module News
autrijus writes "The Perl Archive (PAR) toolkit, like Java's JAR, is a way to pack modules and scripts into easily-deployable zip files; programs can use modules inside PAR files transparently. "

Autrijus continues:

After two weeks of intensive testing and contributions from a dozen people, PAR 0.21 now includes tools to find out prerequisite modules from a script, pack them into a PAR file, and turn the PAR file into a self-contained script or binary. This is just like what Perl2Exe or PerlApp does, except that PAR is much more flexible, and is free software.

I have prepared a presentation, Introduction to PAR, to explain its usage, ideas and implementation details. Porters and suggestions welcome!

 

 
use Perl Login
Nickname:

Password:

[ Create a new account ]

Related Links
· Perl
· Perl2Exe
· PerlApp
· Introduction to PAR
· autrijus
· Perl Archive (PAR)
· JAR
· More on Module News
· Also by Simon

PAR: A cross between JAR and Perl2exe/PerlApp | Log in/Create an Account | Top | 6 comments | Search Discussion
Threshold:
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
IO::Scalar stuff (Score:2)
by Matts (1087) on 2002.11.03 3:10 (#14443)
( Last Journal: 2003.12.07 13:47 )
You say you didn't want to use Temp files while extracting the file from the zip, but you do elsewhere in the system. In some code of mine that needed to return a filehandle but I extended to work with zip files I just used the following to good effect:
    my $fh = IO::File->new_tmpfile;
    $member->extractToFileHandle($fh);
    seek($fh, 0, 0);
    return $fh;
Any reason not to do that?
[ Reply to This ]
  • Re:IO::Scalar stuff by autrijus (Score:1) 2002.11.03 6:06
  • Re:IO::Scalar stuff by autrijus (Score:1) 2002.11.03 8:07
  • App::Packer? (Score:1)
    by tex (949) <texNO@SPAMbombshelter.ca> on 2002.11.03 12:55 (#14446)

    It looks like Mattia Barbon is working on a similar project that he is calling App::Packer. App::Packer packs perl scripts and all of their dependencies inside an executable. [cpan.org]

    Have you two discussed strategies or details? Both projects are under very active development with each one having multiple releases to CPAN in the last week, sometimes more than one a day.

    -- tex


    -- tex

    [ Reply to This ]
  • Re:App::Packer? by autrijus (Score:1) 2002.11.03 17:16
  • 'pp': like perlcc only it works! (Score:1)
    by autrijus (1505) on 2002.11.05 17:41 (#14497)
    ( Last Journal: 2003.06.12 12:49 )
    The newest [cpan.org] version of PAR (0.40 as of now) features a pp program, with an interface identical to perlcc, but it works without any hassle.

    Of course it stores source code instead of bytecode (but storing bytecode is entirely possible with ByteLoader.pm), which makes it more like perl2exe or perlapp, but nevertheless it's a compelling alternative to those three.

    [ Reply to This ]

    There are features that should not be used.
    There are concepts that should not be exploited.
    There are problems that should not be solved.
    There are programs that should not be written.
                --Richard Harter, <rh@smds.com>
    Download Perl Now!

    Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2004, their respective owners.