From f38d25c9201831ac3368e3e58ab8bd27e1bf2462 Mon Sep 17 00:00:00 2001 From: nott Date: Wed, 16 Apr 2008 16:57:32 +0000 Subject: [PATCH] Set PREFERRED_PARSER for Linux only. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1083 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT-2.0/xCAT/Client.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/perl-xCAT-2.0/xCAT/Client.pm b/perl-xCAT-2.0/xCAT/Client.pm index 8fe608c8a..08684638e 100644 --- a/perl-xCAT-2.0/xCAT/Client.pm +++ b/perl-xCAT-2.0/xCAT/Client.pm @@ -28,7 +28,9 @@ unless ($inet6support) { } use XML::Simple; -$XML::Simple::PREFERRED_PARSER='XML::Parser'; +if ($^O =~ /^linux/i) { + $XML::Simple::PREFERRED_PARSER='XML::Parser'; +} require Data::Dumper; use Storable qw(dclone); my $xcathost='localhost:3001';