in reply to Compile errors

Check the installed version of Win32 - 0.39 does define $VERSION - at line 11.

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

Replies are listed 'Best First'.
Re^2: Compile errors
by Albert059 (Initiate) on Sep 24, 2009 at 23:41 UTC
    Line 11 says "$VERSION = '0.39';".
      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 :-))

        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.
        Try adding at line 45 in PerlIDE/dbTemplate.txt the line: use Win32; That worked for me.