in reply to Re^2: aborted due Compilation error (!!??)
in thread aborted due Compilation error (!!??)

My suggestion was "no strict "subs"" - it id not include the word "use".

If you want to disable "use strict", simply comment it out at the top of the code. (Insert "#" as the first character (without the quotes))

Also - it would help readers if you formatted your post using HTML paragraph markers: <p> and/or <br/>

             I hope life isn't a big joke, because I don't get it.
                   -SNL

  • Comment on Re^3: aborted due Compilation error (!!??)

Replies are listed 'Best First'.
Re^4: aborted due Compilation error (!!??)
by franky (Initiate) on May 05, 2012 at 20:05 UTC

    Hi Mr NetWallah,

    I tryed the sugestion with out "use", and when i called the Program didn't work, no action, cursor went to next line.

      updated/redacted
      Ok - good - that means your program did not post any errors.

      By that definition, it completed successfully.

      Now - if you are saying it did not do what you expected it to do, we need 2 things:
      * Your expectations
      * The code - We would prefer a minimal, but sufficient snippet of the code that demonstrates the problem

      Pleae read up on how to use 'readmore" and "code" tags, before posting large amounts of code.

      I did some tests, and found I was mistaken in the belief that "no subs" would allow undeclared subroutines to be called.

      Please ignore my suggestion for "no subs", and do one of the following:

      • Follow chromatic's suggestion - add Parens after the sub name, when calling
      • pre-declare the sub by using "sub SubName{};"
      The best way to approach this is to fix the errors one at a time, until the program runs clean.

                   I hope life isn't a big joke, because I don't get it.
                         -SNL

        Hi Friends,

        Program work fine !!!,

        I Changed from PCLinuxOS to UBUNTU, of course, also i installed the curses::ui packages, that's it,

        Thank you so much for your help !!

Re^4: aborted due Compilation error (!!??)
by franky (Initiate) on May 05, 2012 at 20:11 UTC
    Hi Mr NetWallah,

    Question:: which perl cmd argument can i used to identify if "myprog.pl" need perl repository or "missing" package?

      Look for "use <PackageName>;" statements - this is usually at the top of the code.

      But, since you indicated in the previous post that nothing was displayed by the program, it indicates that perl did NOT find any missing components (it would have complained if it did).

                   I hope life isn't a big joke, because I don't get it.
                         -SNL