On Dec 11, 2007 2:10 AM, patmarbidon <[EMAIL PROTECTED]> wrote: > Patrick Marion has written: > I think that your 'close (OUTPUT)' is inside the sub 'pits' > > you might put it before 'sub pits {' to get it at the logiccal end of > your program. snip
Or remove the close completely. Perl closes all open file handles at the end of the program, so you should only call close if a file handle needs to be closed before then (you should close file handles once you stop using them because they are a limited resource). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/