PPM - scripting

S

Slickuser

Hey guys,

I would like to a create PPM that compile on Windows. I am planning to
buy Perl Dev Kit Pro which can turn my Perl script into executable.

Before that, I want to make sure if this could be achieve on Perl and
is there any example out there.

For example, it will look like this:

game.ppm

So I want "game" command to be executable on Windows prompt.
game start
game display -name "Slickuser"
game stop
game exit

"game" will be overall script
"display" will be a sub function
"-name" will be the option follow by arguments

Any help would be great. Thanks.
 
B

Ben Morrow

Quoth Slickuser said:
Hey guys,

I would like to a create PPM that compile on Windows.

I'm not sure what you mean by a 'PPM'. Are you referring to
ActiveState's Perl Package Manager packages? If so, then you don't need
to turn your script into a package before you turn it into an
executable: the package would only be useful if you wanted to give it
to someone else with a copy of ActiveState Perl already installed.
I am planning to
buy Perl Dev Kit Pro which can turn my Perl script into executable.

I suspect there won't be many people here who know much about Perl Dev
Kit Pro, since it isn't freely available, but the PAR::packer module on
CPAN provides a pp command that makes it very easy to do just that.
Before that, I want to make sure if this could be achieve on Perl and
is there any example out there.

For example, it will look like this:

game.ppm

OK, now I'm really confused. Surely you mean 'game.exe'?
So I want "game" command to be executable on Windows prompt.


"game" will be overall script
"display" will be a sub function
"-name" will be the option follow by arguments

That is certainly possible with pp, and I am sure it's possible with
ActiveState's tool as well. Write a Perl script you can invoke like

perl game start
perl game display -name "Slickuser"

(see @ARGV in perlvar if you need help with that) and then package it up
with your tool of choice.

Ben
 
S

Slickuser

I'm not sure what you mean by a 'PPM'. Are you referring to
ActiveState's Perl Package Manager packages? If so, then you don't need
to turn your script into a package before you turn it into an
executable: the package would only be useful if you wanted to give it
to someone else with a copy of ActiveState Perl already installed.

Yes, I am planning to distribute the executable code only. No Perl
source code and the client doesn't have Perl install.
I suspect there won't be many people here who know much about Perl Dev
Kit Pro, since it isn't freely available, but the PAR::packer module on
CPAN provides a pp command that makes it very easy to do just that.




OK, now I'm really confused. Surely you mean 'game.exe'?



That is certainly possible with pp, and I am sure it's possible with
ActiveState's tool as well. Write a Perl script you can invoke like

perl game start
perl game display -name "Slickuser"

Is it possible to get rid of "perl"? Since the client will not have
Perl installed.
I will convert the .pl or .ppm to .exe format from Perl Pro Dev Kit.
 
B

Ben Morrow

Quoth Slickuser said:
Is it possible to get rid of "perl"? Since the client will not have
Perl installed.
I will convert the .pl or .ppm to .exe format from Perl Pro Dev Kit.

Yes, that was my point. *If* you start with a script that can be invoked

perl game start

and then package it up into game.exe, game.exe should be invoked as

game start

Ben
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top