Hmm, thanks. Your test works fine for me also. I think there must be another problem. Basically, the LD_LIBRARY_PATH of the parent shell points at libxml (C library) v2.4.22, whereas my Perl program uses a Lib::XML which only works with libxml v2.4.24 and above. So, in my Perl program, I set LD_LIBRARY_PATH to libxml v2.4.24 in a BEGIN block. However, this does not seem to be having the desired effect. Maybe I am missing something...
Cheers
Kevin