in reply to Re: making perl executable
in thread making perl executable

i know that , i made the exe file first , just to be safe i made the pl file . If you could please help with the problem of having cpan , in the exe that would be much more helpful than pointing my mistakes

Replies are listed 'Best First'.
Re^3: making perl executable
by marto (Cardinal) on Jul 05, 2013 at 14:14 UTC

    "i know that ,"

    Actually, you don't seem to know what you think you do.

    "just to be safe i made the pl file ."

    Since you want to use pp to create an executable, safety has nothing to do with the requirement to have some perl code. Where in any of the previous discussions we've had, or the documentation does it tell you to attempt what you're trying to do? You must provide perl code as an input to pp, otherwise what do you think you're going to package?

    Using pp you want to create a stand alone executable containing all the modules your code uses. At no point do you want to include cpan here. The second example in the documentation shows you how to create a standalone executable.

    pp -o hello hello.pl # Pack 'hello.pl' into executable 'hello' # (or 'hello.exe' on Win32)
      I gave the perl script as an input to the pp like pp -o hello hello.pl but it creates only a read only file not executable

        Using the same example on a test script it generates an executable for me. What is the output of ls -al hello?