> > 1. the -i flag saves the output file with the original name > +suffix/prefix. In this case I need to use a name given by the user. you might want to look around the $^I variable (in perldoc perlvar) Gabor