in reply to Re^2: Compile errors
in thread Compile errors

Do you get '0.39' as a response if you type perl -MWin32 -e 'die $Win32::VERSION' ?

Any chance of having a look at (an appropriate snippet of) the require'ing code ?

A user level that continues to overstate my experience :-))

Replies are listed 'Best First'.
Re^4: Compile errors
by Albert059 (Initiate) on Sep 25, 2009 at 19:18 UTC

    Typing perl -MWin32 -e 'die $Win32::VERSION gives Can't find string terminator "'" anywhere before EOF at -e line 1.

    Beginning of C:/Perl/lib/Win32.pm:

    package Win32; package Win32; BEGIN { use strict; use vars qw|$VERSION $XS_VERSION @ISA @EXPORT @EXPORT_OK|; require Exporter; require DynaLoader; #<---- LINE 8 @ISA = qw|Exporter DynaLoader|; $VERSION = '0.39'; $XS_VERSION = $VERSION; $VERSION = eval $VERSION;

    Context of perl5db.pl:

    sub ExpandFileName { my $filename = shift; if ($filename =~ m/^\(/) { return $filename; } else { my $result = Win32::GetFullPathName($filename); #<----LINE 435 return NormalizeFileName($result); } }

    Let me know if you need any more code snippets.
      Hmm ,

      The compile error is, I'm afraid, a cut & paste error on your part - you omitted the closing single quote :-(

      Are you sure the head of C:/Perl/lib/Win32.pm contains 2 package statements ?

      How do you load Win32 i.e. via use or require ... and what's the statement you use ?

      A user level that continues to overstate my experience :-))

        Oops. Duh!

        Ok, typing perl -MWin32 -e "die $Win32::VERSION" gives 0.39 at -e line 1.

        Cut and paste error: Beginning of C:/Perl/lib/Win32.pm actually reads:

        package Win32; BEGIN { use strict; use vars qw|$VERSION $XS_VERSION @ISA @EXPORT @EXPORT_OK|; require Exporter; require DynaLoader; #<---- LINE 8 @ISA = qw|Exporter DynaLoader|; $VERSION = '0.39'; $XS_VERSION = $VERSION; $VERSION = eval $VERSION;

        Context of perl5db.pl:

        sub ExpandFileName { my $filename = shift; if ($filename =~ m/^\(/) { return $filename; } else { my $result = Win32::GetFullPathName($filename); #<----LINE 435 return NormalizeFileName($result); } }

        Sorry about that. I'm brand new to Perl Monks and I've been having a little trouble using this forum. For instance, right now I can't see all the comments on this thread. After the first three, I just see titles.

        No, wait. I changed my "chosen depth" and now I can see all the comments.

Re^4: Compile errors
by Anonymous Monk on Apr 06, 2012 at 14:17 UTC
    Try adding at line 45 in PerlIDE/dbTemplate.txt the line: use Win32; That worked for me.