Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^5: how to create a makefile using PAR::Packer

by karlgoethebier (Monsignor)
on Dec 12, 2012 at 21:10 UTC ( #1008588=note: print w/replies, xml ) Need Help??

in reply to Re^4: how to create a makefile using PAR::Packer
in thread how to create a makefile using PAR::Packer

nroff and groff are typesetting systems on Unix systems.

With the following two commands you can create a printable file and send it to your printer:

Karls-Mac-mini:~ karl$ groff -mm ch01 > ch01.fmt Karls-Mac-mini:~ karl$ lp ch01.fmt

Update:...ch01 is formated file...

The very basic blueprint to include code in your perl program(s) is:


package Foo; use strict; use warnings our $VERSION = '1.00'; use base 'Exporter'; our @EXPORT = qw( foo ); sub foo { return "bar\n"; } 1; # later, in your main program you say: use strict; use warnings use lib q(/path/to/Foo); use Foo; print foo();

See perlmod

pp for creating executables is OK (and cool) but keep in mind that this just are self extracting archives - you can unzip them.

Regards, Karl

«The Crux of the Biscuit is the Apostrophe»

Replies are listed 'Best First'.
Re^6: how to create a makefile using PAR::Packer
by gepebril69 (Scribe) on Dec 13, 2012 at 12:08 UTC

    Hi Karl

    I will use your examples and maybe it will become clearer to me what you try to explain. And how to use this info in my solutions.

    I've changed the extension of one file from .exe -> .zip and you are 100% right. I'm completely shocked! Besides the advantage of not to create a Perl environment on systems I don't see the benefit of using pp (PAR::Packer). Is there a way to prevent this and use a module that doesn't make retrieving the source code that easy!!! And produce real machine code.

      As I previously suggested, read and understand the documentation, this is all explained there. If you don't understand the benifit of pp, why are you using it?

        One year ago I read everything I needed to know about PAR::Packer, if I would have read about the possibility to unzip the executables, I would never have used it. I can remember reading people using it to protect their sources. Well in a way it does, but just a very little. Very strange to create a zip file takes 45 minutes for just a few hundred lines of code......

        That being said, it brought me a step closer to what I wanted, and I'm grateful for that. That's life sometimes you take a wrong turn, to find later on you need to go back.

        So I will start my search on a real compiling solution, if there is any

        Any suggestions for a good wiki on to compile .pl files to .exe, on Windows which are real compilers, not packers

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1008588]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2018-03-20 02:44 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (247 votes). Check out past polls.