Hi perlmonks,
I need a help from you ,
I am trying to read and write(not append) a file concurrently using perl. I used the command
open FILE,"+< file name" or die $!; and
sysopen with O_RDWR option .
the commands doing the correct thing , but what i need to is to write not append to the file .
for example in file i have a word " hello how are you ".
when i used the open or sysopen command with (print <handle> "fine how about you"; ) value "fine how about you " its appending the new value to the file. like " hi how are you fine how about you" .
is there a way to write(not append) to a file while it was opened.
there might be a way to do this , but i could not able to find that , please help me .