http://www.perlmonks.org?node_id=178911

dwatson06 has asked for the wisdom of the Perl Monks concerning the following question:

I am having problems using the String::Parity module. When I include it in my Perl script, I am getting the following error...

Can't find string terminator "EDQ" anywhere before EOF at Parity.pm line 49. Compilation failed in require at testit.pl line 5. BEGIN failed--compilation aborted at testit.pl line 5.

Line 5 is-- use String::Parity;
Is anyone familiar with this error. I have tried searching this error on Google with no luck. Am I missing the obvious out of frustration? :o(
Thank you Server Error (Error ID 3570915c2135549)

An error has occurred. The site administrators have been notified of the problem and will likely soon fix it. We thank you, for you're patients.

Replies are listed 'Best First'.
Re: Problems with String::Parity;
by VSarkiss (Monsignor) on Jul 02, 2002 at 17:20 UTC

    Either the file String/Parity.pm is corrupted, and you should download it again, or it has the wrong type of line endings for your system (Win32/Unix), and you should download it again.

    If you're not using the CPAN module for downloading, make sure the file transfer is set up to "do the right thing" with line endings.

    HTH

Re: Problems with String::Parity;
by Aristotle (Chancellor) on Jul 02, 2002 at 17:20 UTC
    It's got a typo in the source apparently. Let me take a look at it.. Update: Hmm no, the copy I just fetched from CPAN works fine. What platform are you on and how did you install it?

    Makeshifts last the longest.

      I am using ActiveState. I have the same version on another server which gives the same error also. It's the eval<<EDQ here...
      my $even_codes = '';
      while ($even_bits =~ /\0/g) {
      $even_codes .= sprintf '\%o', (pos $even_bits) - 1;
      }

      eval<<EDQ;
      I am using another version of it locally now, still getting the same error.
        The indented part below that should end with
        EDQ die $@ if $@;
        Does it?

        Makeshifts last the longest.