and do a search for "stat", there's at least 7 modules that you can get by a quick count. Since I doubt that any of these use a special library to do the calculations, you should be able to use these cross-platform without problems. If you are using ActiveState's perl, you can also see if they have a PPM for it as well.