Did you read the error message and did you take a look at line 9 of your script? Line 9 is: my @out =<OUTPUT>;. So you are trying to read from a filehandle that was opened only for output, just like the error message said.
The second error probably occurs because the split in the previous line 23 does not split into as many parts as you are expecting. So at least $arr2[3] is uninitialized.The error message tells you that bactpathway.text should have a line not conforming to your expectations.
In reply to Re: comparing data btwn 2 files
by jethro
in thread comparing data btwn 2 files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |