There's actually even a perl function called "rename" that does just
this. Here's some good reading for you. Maybe from there you can
look up other stuff when you have questions.
http://perldoc.perl.org/functions/rename.html
Aimee Mostella Cardena
Irfan Sayed wrote:
> OK. fine
> now i am able to write in a temp. file
>
> after this now i want to overwrite the contents of original file with the
> contents of temp. file.
> why i want the original file because i want to use this original file
> with changes in temp. file in my further build s