From: Joel VanderWerf Date: 2002-08-25T09:32:42+09:00 Subject: Re: Can I write to DATA? nobu.nokada@softhome.net wrote: > 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? Well, you're right. It works from the command line. I was running it from nedit, which for some reason is confused (like me :).