Thanx.... i will try to go from there, if not, i will work something from what i can gather from the File::stat info
I have finally solved my problem....
funny thing is that it was actually not that hard, once i started thinking about what i was doing...