$stdin
Author |
Message |
Mackie
![](http://compsci.ca/v3/uploads/user_avatars/217548454cee912ae1202.png)
|
Posted: Thu Feb 28, 2008 8:58 pm Post subject: $stdin |
|
|
How do I use '$stdin' in Ruby? I don't see any advantages over 'gets'. And what are all of the definitions? I can't find anything about it, in any form of documentation. Thanks in advance. |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Thu Feb 28, 2008 9:57 pm Post subject: RE:$stdin |
|
|
$stdin is an instance of an IO class. gets is a method of $stdin |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
|
|