Hi ,
when I try to open file with > for writing
this file already exists but after it is opened
the contents become blank
can we open file in perl preserving its contents and for writing
and also can the contents of such file opened for wrting be
modified on the fly using search replace
your help is much appreciates.. thanks
;
open (HAN , ">" ,'D:\RAM\perl\test') or die "$!";
while (<HAN>){
s/e/\*\*/ig;
print HAN ;
}