Eric Armstrong wrote:
> There's one line in there that's driving me nuts.
> 
> nobu / ruby-lang.org wrote:
> 
>>
>>   def adventurous!
>>     verbose, $VERBOSE = $VERBOSE, nil
> 
>      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> 
>>     yield
>>   ensure
>>     $VERBOSE = verbose
>>   end
>>
>>   adventurous! {system(cmd)}
>>
> What the heck is that line doing??


Haha... it's a Perl/Ruby idiom...

    x, y = y, x   # swap values of x and y

So he was just saving off $VERBOSE so he
could restore it at the end.


Hal