in reply to Re: Bad file descriptor errorin thread Bad file descriptor error
Unknown format list.txt. Bad file descriptor at code.pl line 30, <$fh>
+ line 41.
You could have found that yourself if you printed out the lines as your program went through them, or if you added the text of the line to your error message.
So, have you looked at line 30?
What have you done to improve the error message that line 30 produces?
Maybe consider reading die to find out what that subroutine does.
1. Keep it simple
2. Just remember to pull out 3 in the morning
3. A good puzzle will wake me up
Many. I like to torture myself
0. Socks just get in the way
Results (337 votes). Check out past polls.