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

Yes, but it breaks the flow if there is another variable. See here:
sub change_me{ $myvar = somesub(); local $^I = ".bak"; @ARGV = "some_file"; while (<>) { s/foo/$myvar/i; print; } }
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.

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
    Is there a way to get 5.005_03 to use the variable and not hang?