From: nobu.nokada@... Date: 2002-08-25T09:02:58+09:00 Subject: Re: Can I write to DATA? Hi, At Sun, 25 Aug 2002 02:21:51 +0900, Joel VanderWerf wrote: > >>>script_size = __DATA__.pos > >> > >>The following script prints -1. Is there some other way to get the > >>position without parsing? > >> > >>--- > >>p DATA.pos > >>__END__ > >>this is some data. > > This code gave 19 for me. What's your ruby version (and > > release date) and platform? > > puts RUBY_VERSION # ==> 1.6.7 > puts RUBY_PLATFORM # ==> i686-linux > puts RUBY_RELEASE_DATE # ==> 2002-03-01 All of last 1.4.6, 1.6.7 release and CVS latests of 1.6 and 1.7 worked properly. > It looks like maybe __DATA__ is in 1.7? Sorry, it's a typo. -- Nobu Nakada