Keep It Simple, Stupid | |
PerlMonks |
Re^2: Perl scriptby marto (Cardinal) |
on Feb 07, 2017 at 10:41 UTC ( [id://1181277]=note: print w/replies, xml ) | Need Help?? |
OP is not trying to compare the size of two XML files, but the value of dataSize within two XML files. While it doesn't address this problem your example should also check that the files exist before allocating a size to them, e.g. my $filesize2 = 0;.
In Section
Seekers of Perl Wisdom
|
|