Jump to content

Talk:The Twelve Days of Christmas: Difference between revisions

→‎question about Ruby: tried to answer question
m (/* question about Ruby === newlines versus end-of-record indicators. -- ~~~~)
(→‎question about Ruby: tried to answer question)
Line 58:
 
What happens when the same program is put on a system where there are no   '''\n'''   indicators in the file, but the ''newline'' is instead, ''indicated'' by the end-of-record in the file structure.   This would be the case of (generic) OS (MVS) or CMS (both IBM systems). -- [[User:Gerard Schildberger|Gerard Schildberger]] ([[User talk:Gerard Schildberger|talk]]) 16:14, 22 December 2013 (UTC)
 
Probably the correct way to split would be split(&/), &/ being the input record separator global variable. I've never seen it used, except for golfing, but Ruby uses it with methods like gets and readline.
1,149

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.