Hi,

I have tried this:

def foo(x=$_)
  puts x
end

$_ = "bar"
foo($_)	# => bar
foo	# => nil
print	# => bar

Why is it that the #print method is allowed
to have access to $_ as its default, but methods
we write aren't? Or is there something I am missing?

If there really isn't a way right now, can it be made available?

Thanks,

Guy N. Hurst

-- 
HurstLinks Web Development    http://www.hurstlinks.com/
Norfolk, VA  23510            (757)623-9688 FAX 623-0433
PHP/MySQL - Ruby/Perl - HTML/Javascript