From: Kerwin Franks Date: 2010-05-04T18:07:42+09:00 Subject: * splat error Hello, i need some help here, when i run the following code i get the error below. Why is that, according to the textbook it should work, also looked it up in the cookbook, no luck there too. Thanks in advance. def split_apart(first, *splat, last) puts "first: #{first.inspect}, splat: #{splat.inspect}, " + "last: #{last.inspect}" end split_apart(1,2) split_apart(1, 2, 3) Error: /home/gribota1/NetBeansProjects/Analyzer/lib/rubymethods.rb:32: syntax error, unexpected tIDENTIFIER, expecting tAMPER or '&' def split_apart(first, *splat, last) ^ -- Posted via http://www.ruby-forum.com/.