PerlBin - turn your perl script into a binary executable


NAME

PerlBin - turn your perl script into a binary executable

__top


SYNOPSIS

    perl -MPerlBin -e"PerlBin->new(qw[ in/foo.pl out/foo.exe ])"
                                        #
    # or
                                        #
    use PerlBin;
    my $pB = PerlBin->new();
    my $outdir = 'out/';
    $pB->scan_deps('in/foo.pl');
    $pB->add_deps('Module::ScanDeps');
    $pB->PutBinary('in/foo.pl', 'out/foo.exe');
    $pB->PutDeps($outdir);
    $pB->clear_deps();
    $pB->add_deps('CGI/Cookie.pm');
    $pB->PutDeps($outdir);
    $pB->PutSO($outdir);    # perl56.dll on my perl
    $pB->PutBinary('in/foY.pl', 'out/foY.exe');
                                        #
    undef $pB;

__top


DESCRIPTION

Don't use this module, use the perltobin application that comes with it, it's much more useful.

Try perltobin --gui, you'll like it, i guarantee it (double your money back ;D).

__top


METHODS

Well, they're all pretty much self explanatory, now aren't they?

scan_deps just keeps scanning files for dependencies. The list just keeps growing.

add_deps just keeps adding modules to the list (scanning their dependencies recursively). The list just keeps growing.

PutBinary creates the actual binary (dir-paths must exist).

PutDeps creates 'lib' in $outdir and copies all the dependencies there.

PutSO

__top

 PerlBin - turn your perl script into a binary executable