From: Brian Candler Date: 2009-06-08T02:34:45+09:00 Subject: Re: STDIN, OUT, ERR and $stdin, out, err - Differences? Terry Cooper wrote: > Can anyone explain what's happening here? > > print $stdin.fileno => 0 > print $stdout.fileno => 0 > print $sterr.fileno => 0 Copy-paste error? The third line is clearly a typo for $stderr, and under Linux at least these give 0, 1, 2 respectively. -- Posted via http://www.ruby-forum.com/.