in reply to change a line or string in file
You try this,
open (FIN, "test.txt")|| die ("test.txt does not exists"); undef $/; $instr = <FIN>; $instr =~ s|/prj/sw/tool|/prj/vlsi/toolsmodule|si; print "$instr";
Prasad
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: change a line or string in file
by sachin_chat (Initiate) on Jan 19, 2005 at 10:04 UTC | |
by prasadbabu (Prior) on Jan 19, 2005 at 10:20 UTC | |
|