RCR 158: There should be an ios-specific record separator
submitted by grady on 2003-10-07 20:30:36
This is a legacy RCR. If this is your RCR, please resubmit it using the new format and process.
$, and other ios-related variables, are currently global. It would be nice if there were ios-specific versions of these variables, so you could say something like:
socket.output_record_separator = "
"
Vote for this RCR
Add comments here
Oops, of course it's hard to get the right code to show up. Between the quotes should be backslash-r backslash-n.
The specification of IO#each allows you to do socket.each(" ") { }. I've still voted in favour of this for those cases where #each doesn't make sense.
Back to RCRchive.
RCR Submission page and RCRchive powered by Ruby, Apache, RuWiki (modified), and RubLog