in reply to Re: $^I why this symbol does not work ?
in thread $^I why this symbol does not work ?
run it .an error occur:my $new_par = "YI_OU"; open MYFILE,"c:/perl/test/1.txt" or die "cannot open file:$!"; local $^I = ''; local @ARGV = MYFILE; while(<>){ s/UI_EM/$new_par/g; print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: $^I why this symbol does not work ?
by ikegami (Patriarch) on Oct 01, 2008 at 06:36 UTC | |
|
Re^3: $^I why this symbol does not work ?
by moritz (Cardinal) on Oct 01, 2008 at 06:43 UTC |