in reply to Problem with file::stat

dont use the module, use the stat function directly.
There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.