Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Handling multiple output files simultaneously using arrays of filehandles and filenamesby talexb (Chancellor) |
on Jan 21, 2021 at 16:30 UTC ( [id://11127210]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|