LI NGOK LAM said: >> >> You want seek(), and possibly tell(). >> >> perldoc -f seek >> > > Thanks for reply, but seems I have to clarify my question. > 'seek' and 'tell' only helping me to target my position within > a file handle. > > Say, if I have a 1MB file, and I just want to over write > bytes from 0 to 1000 byte then my job is done, file is supposed > to be saved. I want to avoid to rewrite the rest 900KBs again. > > Would you imagine what I am asking ? > > Welcome for any further suggestions.
Open your file in read/write mode. Seek to where you want to be. Write the data. Close the file. You will probably want to open the file with a mode of "+<". perldoc -f open -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]