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.


In reply to Re: Perl executable problem by kennethk
in thread Perl executable problem by kepler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.