Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: Can't call sub within same package in BEGIN block

by exilepanda (Pilgrim)
on Aug 14, 2014 at 11:58 UTC ( #1097412=note: print w/replies, xml ) Need Help??


in reply to Re: Can't call sub within same package in BEGIN block
in thread Can't call sub within same package in BEGIN block

That's a good one and thanks for pointing out! I didn't really realize I can use those blocks in this way. Though, what confused me was about use vs BEGIN that I think use subs ... could force perl to read for the rest to find this symbol first. But if say it just mean sub mysub;, and BEGIN will run that ASAP, then I can understand why it happens that way.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2020-02-28 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (127 votes). Check out past polls.

    Notices?