From: Gour Date: 2003-03-20T18:06:41+09:00 Subject: Re: Mystery with ARGF ts (decoux@moulon.inra.fr) wrote: > > Well, this is changed in 1.8 > > pigeon% cat test.rb > p ARGF > pigeon% > > pigeon% ruby -v test.rb test.rb test1.rb > ruby 1.8.0 (2003-03-03) [i686-linux] > test.rb > pigeon% Ahh, now it's clear. > > with 1.6, it was initialized to "-" and set to the right value after an > access > > pigeon% cat test.rb > p ARGF > ARGF.gets > p ARGF > pigeon% The code in the script was: path = ARGF.filename, and therefore the variable "path" was left with the "-" value. Thank you very much for your explanation. In my Pickaxe book, there is nothing regards. Where are you picking such details? Sincerely, Gour -- Gour gour@mail.inet.hr Registered Linux User #278493