I'm fully aware of the dangers of using $^I however I'm not able to change that at present for reasons I can't go into. What I would like to do is to flock the file when it is opened. How do I do this when in-place edit is being used in this manner ?if ($delrec) { local $^I = ".keep"; @ARGV = qw(filename); while (<>) { do stuff } }
In reply to flock on on $^I by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |