i just want to open a TXT file and replace some words,and then save it to the TXT file.i don't want any BAK files. But $^I does not work .whether it is "",or ".BAK" ! i am chinese guy. My english is not very good.if there anything wrong above,please tell me. thanks .#$^I=""; #$^I=".bak"; sub replace(){ my $para = "$dir/$_[0]"; open MYFILE,"$para" or die "cannot open file $para $!\n"; while(<MYFILE>{ s/UI_EM/$newpar/g; print; } }
In reply to $^I why this symbol does not work ? by kingwrcy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |