Its usually considered good form if you post what you have tried to do first..
In reply to Re: Capture filename by ropey in thread Capture filename by perl_n00b