I tried to run this program and got this sollowing error:

...rb:42: syntax error, unexpected '.', expecting '|'
callcc { |song.wall| song.of(99) }.sing { |beer| beer.drink }
               ^
...rb:42: syntax error, unexpected '}', expecting $end
callcc { |song.wall| song.of(99) }.sing { |beer| beer.drink }
                                  ^

Is there a way to fix this?  Thanks.

Attachments:
http://www.ruby-forum.com/attachment/8275/bottlesofbeer2.rb


-- 
Posted via http://www.ruby-forum.com/.