Quantcast
Channel: ActiveState Community Site - PDK discussion
Viewing all articles
Browse latest Browse all 116

Create exe from encoded script with option

$
0
0

Hi,

I am trying to make a standalone exe from a perl script, using
ActivePerl 5.8.9 Build 827 and
Perl Dev Kit 9.1.1.

The script uses the name of the input file (file to parse) as an option ("perl script inputfile" in cmd).
However, the created exe does nothing, no output is produced as if no input file is specified.

As I understand, PDK should have no problems with options, running exe from cmd in the form of "exe inputfile" should work.
But I am concerned about the process of creating the exe. The perl script was not created by me, and when I open it in an editor (not hex view!) only numbers and some other characters are visible. So I consider it encoded in some way, although I do not know how. And PDK reports only implicit modules when opening the script, so it seems to me there could be the problem. I manually added Getopt modules, but behaviour is the same, no output.

Could the problem be in missing modules or is it perhaps the encoded script?
When doing "perl script inputfile" in cmd it works fine. Also, if I omit "inputfile" it reports "Nothing to do". When running exe there is no such report.

Thank you very much!

Best regards,
Kristijan


Viewing all articles
Browse latest Browse all 116

Trending Articles