in reply to Can't locate object

What version of Algorithm::Diff do you have installed? Try running the following to find out: perl -MAlgorithm::Diff -e'print $Algorithm::Diff::VERSION'. According to the docs, older versions did not support the object-oriented API. That could be the issue.

Update: My theory was wrong.

Update 2: I clearly don't know anything about ActivePerl. See below.

Replies are listed 'Best First'.
Re^2: Can't locate object
by Anonymous Monk on Dec 08, 2004 at 04:42 UTC
    Hello

    I have Algorithm::Diff version 1.1901. Is this an older version?

    Thank you.

      No, it is not. I guess my guess was wrong.
        What else do you think the error might be? Thanks
Re^2: Can't locate object (root cause)
by tye (Sage) on Dec 09, 2004 at 06:43 UTC

    No, your theory was correct. 1.1901 was the version installed with cygwin Perl which wasn't the Perl giving the error. PPM gets you version 1.15 which the original querent was eventually able to see was the problem (via the chatterbox).

    Since the original question mentions XP, it would have helped had you used Win32-style quoting in your suggestion of how to report the module version number:

    perl -MAlgorithm::Diff -e"print $Algorithm::Diff::VE­RSION"
    or, since Algorithm::Diff uses Exporter.pm, just:
    perl -MAlgorithm::Diff=9999 -e0

    (FYI)

    Thanks for the quick response with an excellent guess (which even turned out to be correct).

    - tye