Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: How to fool caller() / use NEXT within a dynamic sub

by xdg (Monsignor)
on Jul 26, 2005 at 20:39 UTC ( [id://478357]=note: print w/replies, xml ) Need Help??


in reply to Re: How to fool caller() / use NEXT within a dynamic sub
in thread How to fool caller() / use NEXT within a dynamic sub

OK, that's really cool, but Huh? Is there any documentation for that somewhere? (Other than reading the perl source code, I guess.)

-xdg

Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.

Replies are listed 'Best First'.
Re^3: How to fool caller() / use NEXT within a dynamic sub
by chromatic (Archbishop) on Jul 26, 2005 at 21:29 UTC

    I haven't seen any documentation outside of reading gv.c. Ovid is the one who gave me the tip. My guess is that someone fooled around with Devel::Peek and found that anonymous globs have a special case to give them stash names.

Re^3: How to fool caller() / use NEXT within a dynamic sub
by betterworld (Curate) on Jul 26, 2005 at 21:08 UTC
    Is there any documentation for that somewhere?

    Well, as I indicated in my first posting in this thread, caller() would usually return something::__ANON__. So I guess that chromatic's idea is basically, 'Why not just make __ANON__ an alias to what we need?'.

    I don't know if this is documented; and probably I wouldn't have been able to work this out myself.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://478357]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-03-29 13:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found