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
In reply to Re: change a line or string in file
by prasadbabu
in thread change a line or string in file
by sachin_chat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |