From: David Alan Black Date: 2002-01-20T21:24:21+09:00 Subject: Re: $_ as default parameter for a function Hi -- On Sun, 20 Jan 2002, ts wrote: > >>>>> "D" == David Alan Black writes: > > D> def show_me > D> my_proc = proc do |*params| > D> print "Here's the $_ right after the 'event': " > D> puts eval("$_.inspect",params[4]) > > set_trace_func(nil) # better like this, no ? > > D> end Yes, I see what you mean -- I guess in my demo it did what I wanted, but if there's more to one's program, turning it off makes sense. (As demonstrated by calling show_me twice in a row and getting a screen full of output :-) David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav