Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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 } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: flock on on $^I
by thundergnat (Deacon) on Aug 18, 2010 at 13:36 UTC | |
|
Re: flock on on $^I
by repellent (Priest) on Aug 18, 2010 at 17:55 UTC | |
|
Re: flock on on $^I
by Khen1950fx (Canon) on Aug 19, 2010 at 00:47 UTC | |
by Anonymous Monk on Aug 19, 2010 at 13:53 UTC | |
by Anonymous Monk on Aug 19, 2010 at 14:37 UTC |