It's a little easier to see now that you've edited your post. But you still don't show the relevant part of your code. See PerlMonks FAQ#Posting-on-PerlMonks.
All that can be seen from what you posted is that you twice try to use a variable $out that has not been initialized. In other words, it doesn't contain what you think it does. You should print() it out to see what's in it. Maybe you read it from a file and forgot to chomp() the newline character off the end?
Of course since $out is uninitialized at line 20, your open() fails, but you don't know because you don't check, like this:
open my $OUT, '>', "$out.out" or die "open failed: $!\n";
You're also trying to read from a filehandle that hasn't been opened at line 26; put the same error check on that open() and see why the filehandle isn't open.
In reply to Re: I get these errors when I perform the script
by 1nickt
in thread I get these errors when I perform the script
by mgamar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |