sean_n
7/6/2006 6:07:00 PM
Robert Klemme wrote:
> seannakasone@yahoo.com wrote:
> > how do we obtain the callstack level? for you tcl programmers, i'm
> > looking for something equivalent to [info level].
>
> Does this help?
>
> 09:12:26 [~]: ruby -e 'def f() p caller end; p caller; f'
> []
> ["-e:1"]
>
> Kind regards
>
> robert
Yes, that helps, thanks. finding the caller was the main reason for
obtaining the callstack level. although knowing how deep the callstack
would also be nice but if i only can find caller, i'm happy.