in reply to Re^2: Inserting Text into Files within a Directory
in thread Inserting Text into Files within a Directory
First of all, don't ask a new question by editing your previous one and replacing the text. It makes my above reply look completely irrelevant.
As for creating a temporary file, there are lots of ways to do it. One that might work for you is to just add an extention on the name of the existing file:
open(NEW,">$dir/$file.new") or die "Can't open $dir/$file.new: $!"
-b
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Inserting Text into Files within a Directory
by LF (Initiate) on Aug 24, 2004 at 16:04 UTC | |
by revdiablo (Prior) on Aug 24, 2004 at 17:05 UTC |