in reply to Handling multiple output files simultaneously using arrays of filehandles and filenames
What does Perl say?
Just looking at this code, I see you are missing $! in your error message -- and that would tell you what the problem is. You also don't need "\n" in the die message.
It also looks like you have not defined $filenamefirstpart, so strict should report that's undefined.
I highly recommend you put together a self-contained, working example before you post. We'll help you with stuff you don't understand, but you need to have a working example that compiles first.
|
---|