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.
In reply to Re: stdin erases all my files
by Corion
in thread [SOLVED]open to read file, erases all my files
by baxy77bax
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |