in reply to Re: Perl script
in thread Perl script

Checking -e first is a bad idea, as it leads to race conditions (the file might be deleted between the -e and -s). Just call -s. If it gives undef, the file doesn't exist.

The OP is so vague that I'm not sure whether "datasize" is a field in the XML or the length of some part of the XML.