May 30, 2017, 7:20 AM
Re: [SteffenBaier] Read from Two files and create multiple Files
and I assume this works as there is no errorYou're not receiving any errors because to told perl to not tell you about the errors.
Why did you comment out the warnings and strict use statements? Doing that tells perl that you want it to ignore your errors, which is a really bad idea. It's almost like driving your car with a blindfold over your eyes.
The script is using a number of very poor coding practices making the code more difficult to read and maintain and debug.
$fh does not hold a string; it is a typeglob, which is why you're getting that output.
You need to read from that filehandle (typeglob) to get at the contents of the file. The easiest way to do that is to use the < > diamond operator instead of the double quotes.
(This post was edited by FishMonger on May 30, 2017, 7:20 AM)