Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by karlgoethebier (Abbot)
on Dec 12, 2012 at 21:10 UTC ( [id://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:

Update: Foo.pm

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-04-25 18:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found