From: "trans. (T. Onoma)" Date: 2004-10-13T02:26:43+09:00 Subject: Re: YAML: Integers in YPATH On Tuesday 12 October 2004 01:16 pm, James F. Hranicky wrote: | On Tuesday 12 October 2004 13:10, James F. Hranicky wrote: | > Name : myserv | > Ether : 00:00:00:00:00:02 | > Arch : x86 | > OS : linux | | [del] | | > % ruby /tmp/x.rb /tmp/x.yaml x2 | > [{"Name"=>"myserv", "Arch"=>"x86", "OS"=>"linux", "Ether"=>2}] | | Drat -- I just noticed the ethernet address was interpreted as | 2 as well. I don't suppose there's an easy way to just tell YAML | to not do any conversions, is there? Looky, looky! Someone wants option #1 ;) Sorry, inside joke from yaml mailing list --you can put quotes around them or (maybe) preface with !str. Ether : '00:00:00:00:00:02' or Ether : !str 00:00:00:00:00:02 T.