http://qs321.pair.com?node_id=73809


in reply to Re: checking file size
in thread checking file size

print "removing $_\n"; unlink;
I'd change that to:
print "removing $_: "; print unlink $_ ? "$!\n" : "ok\n";
Otherwise you'll never know what went wrong.

-- Randal L. Schwartz, Perl hacker