in reply to Converting perl script to exe

Hi madtoperl,

As davorg mentioned, perl2exe is probably not in your path, meaning that your path probably doesn't contain the current directory ".".

You can either try calling it directly:

./perl2exe sample.pl

Or you can try temporarily putting the current directory "." in your path with one of the following:

# If you use 'bash' (or similar), add '.' to the path this way export PATH=.:$PATH hash # If you use 'tcsh' (or similar), add '.' to the path this way set path = ( . $path ) rehash

Notice that you should do the 'hash' (or 'rehash' command in tcsh) to be sure that the change to the path take immediate effect.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/

Replies are listed 'Best First'.
Re^2: Converting perl script to exe
by davorg (Chancellor) on Jul 26, 2006 at 14:51 UTC

    But the current directory is omitted from the default path for very good reasons. It's not a good idea to add it.

    --
    <http://dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

      The example I gave was for adding it to the current shell only (as I'm sure you know).

      Although I actually do have it in my default path (that's what I'm used to), I agree that it's not the recommended practice, otherwise I would have suggested something more permanent, like adding it to the user's startup file (ie. .bashrc or .tcshrc).


      s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/