CPAN::Forum
XML-Simple - use XML::Simple; script fails to compile
| Posted on Sat Sep 15 13:46:20 2007 by bolly |
| use XML::Simple; script fails to compile |
|
IN my script, simple comments, XML::Simple fails to compile, wit the error:
Can't locate XML/Simple.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2
+level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.
+6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6
+ /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Librar
+y/Perl/Extras/5.8.6 /Library/Perl/5.8.1) at /Volumes/files/chuee/Library/Caches/TemporaryItems/Cap
+tainFTPTmp73/Comments.pm line 6.
BEGIN failed--compilation aborted at /Volumes/files/chuee/Library/Caches/TemporaryItems/CaptainFTPT
+mp73/Comments.pm line 6.
Other modules required are found, and the the path to perl has been checked to be correct. There is a symlink from /usr/bin/perl to /usr/local/bon/perl as the serer has updated to perl 5.8.8
The relevant calls in the script are:
use XML::Simple;
# Following is to avoid "Can't locate object
# method SWASHNEW" errors in Perl 5.6.1
if ($[ < 5.008) { use utf8; }
my $default_config_file = '';
our $default_section_name = '';
# Force XML::Parser in XML::Simple
$XML::Simple::PREFERRED_PARSER = 'XML::PARSER';
ANy tips, suggestions keenly welcome,
JOhn
|
| Write a response |
(10)
]