From: Zach Dennis Date: 2004-09-08T23:06:01+09:00 Subject: Re: Order of Operations Question Zach Dennis wrote: > I am trying to get the following to work: > > dir = Dir.new( d ) if( File.directory?( d=$*.shift ) ) > puts d > puts dir > > d always outputs correctly, but dir always outputs nil. I tried > > puts d if( File.directory?( d=$*.shift ) ) > > and d is outputted correctly. Why doesn't my first statement work? > > Thanks, > > Zach > Please ignore...i realized I was passing in a nonexistent directory. Zach