#! /usr/bin/perl use strict; use warnings; use Tie::File; my $file = 'test.txt'; tie my @array,'Tie::File',$file or die $!; foreach my $line(@array){ $line =~ s~\$res = system("/prj/sw/tool")~\$res = system("/prj/vlsit +/toolsmodule")~; } untie @array;
In reply to Re: change a line or string in file
by reneeb
in thread change a line or string in file
by sachin_chat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |