From: Zach Dennis Date: 2004-09-08T23:26:12+09:00 Subject: Re: Order of Operations Question ts wrote: >>>>>>"Z" == Zach Dennis writes: >>>>>> >>>>>> > >Z> d = nil >Z> dir = Dir.new( d ) if( $*.length > 0 && File.directory?( d=$*.shift ) ) > > I don't have this problem > > >svg% ruby -e 'd=nil; dir = Dir.new( d ) if( $*.length > 0 && File.directory?( d=$*.shift ) ); p dir' >nil >svg% > >svg% ruby -e 'd=nil; dir = Dir.new( d ) if( $*.length > 0 && File.directory?( d=$*.shift ) ); p dir' ruby ># >svg% > > > >Guy Decoux > > > > You're right...I must have had a typo when i was trying earlier...but it does work when everything is typed in correctly ;) Thanks Guy, Zach