in reply to Perl executable problem

I'm going to fundamentally say exactly what choroba and hippo said, but will use more words.

You have a lot of moving parts here, and so effective debugging says you should figure out how to test individual components. Consider the following:

  1. Can you run a simple one-liner on the command line? e.g., perl -E "say 'Hello'";
  2. Can you run your intended script in your IDE (presumably Komodo)?
  3. Can you run your intended script, uncompiled, on the command line? e.g., perl my_script.pl
  4. Can you compile a simple program with Perl Dev Kit and run it on the command line? e.g., print "Hello\n"; as the entire script.
  5. Can you run your intended script, uncompiled, on the command line in a different location? Changing paths might reveal a dependency issue you missed.

And a review of Basic debugging checklist would likely be helpful.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re^2: Perl executable problem
by kepler (Scribe) on Nov 12, 2015 at 21:13 UTC

    Hi

    All the commands with perl (-E "say 'hello'"; or perl script.pl) runs perfectly. In the IDE - Perl Builder - also. Perl Dev Kit compiled programs...no. It just hangs...It just stays "thinking"...

      So the executable as built by PerlApp hangs even when the script is:

      use strict; use warnings; print "Hello\n";
      ?

      #11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.