Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Okay, that's a shameless attempt to tie this post to those stupid 'gone wild' videos. But, seriously, this has to do with bad file descriptors.
In my CGI script, I open a couple different files a couple different ways, and I created subroutines for these openings and closings. This code:
produces this output at the end of all the HTML that pops out: Error Closing Stock File: Bad file descriptor I already looked at this but it doesn't seem to be the same problem, because I'm not trying to open a directory. I'm pretty much just confused about this. Am I opening the file incorrectly somehow?
Thank you for your time in advance.
Update: Found my error. I had closed STOCK twice. I didn't really know what could produce that error.
Edited 2001-12-06 by dvergin to add update per user request</link> In reply to Bad File Descriptors Gone Wild
by chaoticset
|
|