Re: Marshal Pipe


ruby -e ‘10.times {|i| Marshal.dump(i, $stdout) }’ | ruby -e ‘until
$stdin.eof?; p Marshal.load($stdin) end’

Did not recognized it at first read, because it’s a bit cryptic.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs