in reply to File Handling problem
my $second_file, my $counter etc are also good ideas.
Try print $second_file just before the open statement. Does it actually contain a filename?
Appears you're opening this file for output only. That's going to clobber whatever you got in there, so the next couple of <FH_SECOND> will have nothing to read as the file is opened for writing only - those lines will actually generate warnings.
Is the file actually "writable"? (Though I'm quite sure that's not your intention). When you do fix your open statement, ensure that the file's permissions are appropriate.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: File Handling problem
by girish_01 (Initiate) on Aug 28, 2011 at 17:47 UTC | |
by poj (Abbot) on Aug 28, 2011 at 19:42 UTC | |
by girish_01 (Initiate) on Mar 19, 2012 at 17:56 UTC |