in reply to Re: In place edit 5.005_03 vs 5.8.3
in thread In place edit 5.005_03 vs 5.8.3
This code hangs. I just can't wrap my head around what happens to $myvar. If this is a static entry (like above) it completes.sub change_me{ $myvar = somesub(); local $^I = ".bak"; @ARGV = "some_file"; while (<>) { s/foo/$myvar/i; print; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: In place edit 5.005_03 vs 5.8.3
by jzb (Hermit) on May 01, 2006 at 15:26 UTC |