Trying to add exception handling, getting errors after addingError.pm to path

D

david.karr

I'm trying to implement exception handling on operations calling
SVN::Client. I noticed that Error.pm wasn't in my include path, so I
looked for it (I'm on Cygwin), and I found it at the following
locations:

/usr/lib/perl5/5.10/CPANPLUS/Error.pm
/usr/lib/perl5/vendor_perl/5.10/YAML/Error.pm

So, I tried setting PERL5LIB to include that first directory. After
adding that, I now get lots of errors, starting with this:

Global symbol "%Config" requires explicit package name at /usr/lib/
perl5/5.10/File/Copy.pm line 106.
Global symbol "%Config" requires explicit package name at /usr/lib/
perl5/5.10/File/Copy.pm line 106.
Global symbol "%Config" requires explicit package name at /usr/lib/
perl5/5.10/File/Copy.pm line 106.
Compilation failed in require at /usr/lib/perl5/5.10/CPANPLUS/
Internals/Utils.pm line 9.

My script starts with this:

#!/usr/bin/perl -w
# -*- mode: Perl; -*-
use SVN::Client;
use Getopt::Long;
use Error qw:)try);
 
D

david.karr

Don't do that then :). Those files are modules called (respectively)
CPANPLUS::Error and YAML::Error, not modules called Error. You need to
install Error from CPAN.

Ben

Bleah. Lots of installation errors. I'm going to try a different
tack.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top