> I'm using PAR on Solaris, granted it's solaris 8, but that shouldn't make too 
> much of a difference. Please give more details of your errors and I'll see if 
> I can help.
 
Of course, I can't get really so much information about error cause, as I don't 
know how to debug such released perl program.
A one-line iconv initialization works, but the same in par'ed program not.

> By the way, what flavour of perl are you using? One built with gcc or one 
> built with forte?

mmm gcc I guess (I don't know what's forte).

This is an example of the issue:
use strict;
use Text::Iconv;
use XML::Simple;


my $os_name=`uname`; chomp $os_name;
my $os_version=`uname -r`; chomp $os_version;
my $iconv;

my $config;

eval {
        if ($os_name eq "SunOS" && $os_version eq "5.6") { 
$iconv=Text::Iconv->new ("UTF-8", "8859-1"); }
        else { $iconv=Text::Iconv->new ("UTF-8", "ISO8859-1"); }
        #$iconv=Text::Iconv->new ("UTF-8", "ISO8859-1");
};
if ($@)
{
        print STDERR "Iconv initialization error: [EMAIL PROTECTED]";
        $@ = undef;
}

eval
{
        $config = XMLin ('.testconf', suppressempty => 1);
};
if ($@)
{
        print STDERR "Open configuration file: $@";
}

on developpement host it's failed (iconv error 'Couldn't open encmap 
iso8859-1.enc'), but pp works and par packaged executable is built (maybe with 
something wrong inside).
On test host, I got 'Open configuration file: Can't locate object method "new" 
via package "XML::SAX::Expat" at XML/SAX/ParserFactory.pm line 43.' and running 
perl script with interpreter works.

I continue to work on it.

Reply via email to