At 04:59 PM 2/5/2001 -0600, David L. Nicol wrote: >James Mastros wrote: > > > > At least it's independent of the sub's name. I wish this could be > > > extended to doing recursive calls without having to say the subs own > > > name, again. > > I agree, making the magic variable be the name of the sub is a bad idea. > > > > Your idea for a name for the currently executing sub is interesting, I > > think. I'm going to fork the thread. > > > > -=- James Mastros > >IMO the name of the currently executing sub should be accessed via an >extention to C<caller()>. > > caller{subname} Oh? What prints, then? $foo = sub {print caller{subname}}; $foo->(); Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk
- Re: assign to magic name-of-function variable instead of &q... David L. Nicol
- Re: assign to magic name-of-function variable instead ... James Mastros
- Re: assign to magic name-of-function variable inst... Johan Vromans
- Re: assign to magic name-of-function variable ... James Mastros
- Re: assign to magic name-of-function varia... Bart Lateur
- Re: assign to magic name-of-function ... James Mastros
- Re: assign to magic name-of-funct... abigail
- Re: assign to magic name-of-funct... James Mastros
- Re: assign to magic name-of-funct... Branden
- a name for the currently executin... David L. Nicol
- Re: a name for the currently exec... Dan Sugalski
- Re: a name for the currently exec... David L. Nicol
- Re: a name for the currently exec... Peter Scott
- Re: a name for the currently exec... Dan Sugalski
- Re: a name for the currently exec... Nicholas Clark
- Re: assign to magic name-of-function ... James Mastros
- Re: assign to magic name-of-function varia... John Porter
- Re: assign to magic name-of-function variable instead ... John Porter
- Re: assign to magic name-of-function variable inst... David L. Nicol
- Re: assign to magic name-of-function variable ... James Mastros
- Re: assign to magic name-of-function varia... David L. Nicol