T
Terry Cooper
Can anyone explain what's happening here?
print $stdin.fileno => 0
print $stdout.fileno => 0
print $sterr.fileno => 0
print STDIN.fileno => 0
print STDOUT.fileno => 1
print STDERR.fileno => 2
print STDOUT.object_id => 21673330
print $stdout.object_id => 21673330
I get the same results in and out of eclipse and with irb
ruby 1.8.6, XP
Many thanks.
print $stdin.fileno => 0
print $stdout.fileno => 0
print $sterr.fileno => 0
print STDIN.fileno => 0
print STDOUT.fileno => 1
print STDERR.fileno => 2
print STDOUT.object_id => 21673330
print $stdout.object_id => 21673330
I get the same results in and out of eclipse and with irb
ruby 1.8.6, XP
Many thanks.