From: Fredrik Date: 2007-10-12T14:45:17+09:00 Subject: Re: Ignore printout > > You will need to reopen STDOUT to /dev/null > Then I have two more questions to that :) 1) What's the difference between $stdout and STDOUT? They seem to be the same thing. 2) In my pickaxe book I read that "Assignment to $stdout is depracated; use $stdout.reopen instead." But if I want to redirect $stdout and then $direct it back to what it was before, surely I HAVE to use assignment to $stdout. Like this: out = $stdout $stdout = File.new('/dev/null','w') puts 'This is not to be seen by anybody.' $stdout.reopen(out) If I use reopen on the second line instead, the 'out' variable comes along to this new value and nobody knows where the "usual stdout" is, right?