Three "the roof" in SiB's output, but only 2 in Ruby's. Prob SiB uses $/ somewhere.
#!/usr/bin/env ruby -W0
public def !
gsub(/ +|#$//,%/ /)
end
class Symbol
else
def
<<* w,t:?f
yield end.
<< do raise +$/+
! <<-"the roof."
the roof
the roof.
end
end rescue begin # just to be cute
$><<%!#$!!*-~-~$.<<!!%!
is
on
fire!
puts end
# >>
# >> the roof
# >> the roof
# >> the roof is on fire
Three "the roof" in SiB's output, but only 2 in Ruby's. Prob SiB uses
$/
somewhere.