I have never used it, but File::Split should do what you are looking for
citromatik
In reply to Re: File pieces by citromatik in thread File pieces by azaria