in reply to Re: Compile errors
in thread Compile errors

Line 11 says "$VERSION = '0.39';".

Replies are listed 'Best First'.
Re^3: Compile errors
by Bloodnok (Vicar) on Sep 25, 2009 at 02:12 UTC
    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.
        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 :-))
      Try adding at line 45 in PerlIDE/dbTemplate.txt the line: use Win32; That worked for me.