in reply to [SOLVED]open to read file, erases all my files
The error is in your program. Most likely, you overwrite your files because not only do you open them for reading but also open them for writing somewhere.
As you don't show any working code, it's hard to help you further. I would replace the opening and writing of files by subroutines that simply print what they do instead of doing. This should show you that you are trying to write to the files that you are supposed to read.
Of course, this is some basic debugging strategy - suspecting a bug in Perl is a bad approach if you haven't done any debugging yourself.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: stdin erases all my files
by baxy77bax (Deacon) on Jul 02, 2010 at 12:16 UTC | |
by Corion (Patriarch) on Jul 02, 2010 at 12:31 UTC | |
by bluescreen (Friar) on Jul 02, 2010 at 13:01 UTC |