From: alex f Date: 2002-08-07T08:22:48+09:00 Subject: STDOUT and $stdout hi folks I've been using for Ruby for a bit now, but I've never felt happy that I've understood the difference purposes of $stdout and STDOUT (and -in & -err). In particular, I'm interested in doing things similar to what I did in Perl with select and tie-ing STD filehandles to classes temporarily then returning to program default values. I've seen an interesting example of a string-based class implementing IO-like behaviour in 'The Ruby Way' (223-225), but I'm not sure how to manipulate Ruby's STDOUT and $stdout to do useful things with these sort of classes (using .reopen()?), so I'd appreciate pointers to threads or example code. Best wishes alex alex fenton __ alex fenton http://www.pressure.to/cccp/ --still anxious--