Robert Klemme
6/19/2008 3:40:00 PM
On 19 Jun., 17:29, Karl von Laudermann <doodpa...@mailinator.com>
wrote:
> On Jun 19, 10:08 am, Todd Burch <pro...@burchwoodusa.com> wrote:
>
>
>
> > This is the error he gets:
>
> > Last login: Sat Jun 14 16:57:06 on console
> > adam-fanns-power-mac-g5:~ adamfann$ cd desktop
> > adam-fanns-power-mac-g5:desktop adamfann$ ruby phone_nums.rb
> > phone_nums.rb:1: syntax error, unexpected tIDENTIFIER, expecting $end
> > IO.foreawhen "S1if value[0,1]=="=" then value =
> > value[1,value.length-1].to_s ; eputs "....done." ; Unknown record
> > type:\n\t#{t}" ;
>
> Offhand it looks to me like there's a problem with the script's line
> endings, i.e. Ruby is expecting Unix line endings but the script has
> DOS endings. The clue is that the error message seems to be claiming
> that the error is on line 1, as though the entire script is one line.
> I don't know why this would be a problem if both your computer and his
> are Macs, though.
Another potential source might be different versions of the Ruby
interpreter.
Cheers
robert