There are two versions of perl installed on system.
When /usr/bin/perl is used for XML::LibXML script is working fine. But when /usr/local/bin/perl is used it is causing BusError(coredump).
Note that XML::LibXML is installed in application directory.