From: Michael Garriss Date: 2003-09-19T02:18:35+09:00 Subject: Re: closing stderr Mark J. Reed wrote: > >Note that you have to assign something open to $stderr before assigning >to STDERR, or else the assignment to STDERR throws an exception trying to >print the "already initialized constant" warning and the assignment >doesn't complete. There is probably a cleaner way of doing this. > > > Thanks to all who responded! Assign something open? I don't understand. I get a syntax error on that assignment: bin/ruglyctl:132:in `require': /usr/www/apache/rugly/lib/rdb_rugly.rb:40: dynamic constant assignment (SyntaxError) STDERR = $stderr ^ from bin/ruglyctl:132:in `handle_db_cmdtype' from bin/ruglyctl:146 Regards, Michael