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; } }
In reply to Re^2: In place edit 5.005_03 vs 5.8.3
by jzb
in thread In place edit 5.005_03 vs 5.8.3
by jzb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |