Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: How do I know if I'm in a BEGIN block?

by dave_the_m (Monsignor)
on Oct 29, 2009 at 10:54 UTC ( #803926=note: print w/replies, xml ) Need Help??


in reply to How do I know if I'm in a BEGIN block?

You could use caller() to see if one of the functions in the call chain is called 'BEGIN'

Dave.

  • Comment on Re: How do I know if I'm in a BEGIN block?

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2021-06-19 06:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What does the "s" stand for in "perls"? (Whence perls)












    Results (91 votes). Check out past polls.

    Notices?