Perl script compiling

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MahmoodA
    New Member
    • Jul 2010
    • 3

    Perl script compiling

    I have installed Active Perl and PerlIdE on my computer to use perl in Windows. When I compile a code ( using F8 key) a built-in script activates with an error on this line:
    my $result = Win32::GetFullP athName($filena me);

    can anybody tell me what does this message say and how I can fix it.

    Thanks a lot
  • numberwhun
    Recognized Expert Moderator Specialist
    • May 2007
    • 3467

    #2
    That is pretty vague, can you please post your full error output here? Also, please post your code.

    Regards,

    Jeff

    Comment

    • MahmoodA
      New Member
      • Jul 2010
      • 3

      #3
      Thanks Jeff, here is the error that I get on the Perlide consol. Also, it has nothing to do with the code. I get this error on all codes even very simple one-line codes.
      Cheers,
      Mahmood

      Win32 does not define $Win32::VERSION--version check failed at ..\perlIDE\OPen _Perl_IDE_1.0.1 1.409/perl5db.pl line 435.
      BEGIN failed--compilation aborted.
      Compilation failed in require at C:/Perl/lib/Win32.pm line 8.
      BEGIN failed--compilation aborted at C:/Perl/lib/Win32.pm line 80.
      Compilation failed in require at ..\perlIDE\OPen _Perl_IDE_1.0.1 1.409/perl5db.pl line 435.
      BEGIN failed--compilation aborted.
      Compilation failed in require.
      BEGIN failed--compilation aborted.

      Comment

      • numberwhun
        Recognized Expert Moderator Specialist
        • May 2007
        • 3467

        #4
        It looks like you have requirements that are not met. To me, these say that the Win32 module is not installed. Whenever you have a require, the module MUST be installed. Heck, any time you use a module it needs to be there.

        May I ask, since Perl is an interpreted language, why do you need to compile?

        Comment

        • MahmoodA
          New Member
          • Jul 2010
          • 3

          #5
          sometimes when I am done with a new code, I need to trace it line by line to see what is going on and to make sure the result is correct. This is why I need to compile (using F8 key or related icon on perlide).

          Comment

          • numberwhun
            Recognized Expert Moderator Specialist
            • May 2007
            • 3467

            #6
            Gotcha. Unfortunately, I am unfamiliar with perlide. If I need to trace the code, I typically use perl debug and it allows me to follow the code, line by line. Its pretty nice once you get to know it.

            Comment

            • chorny
              Recognized Expert New Member
              • Jan 2008
              • 80

              #7
              Which version of Active Perl do you use?

              Comment

              Working...