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

Re: Which are perl-internal subroutines?

by samtregar (Abbot)
on Nov 18, 2007 at 01:52 UTC ( [id://651476]=note: print w/replies, xml ) Need Help??


in reply to Which are perl-internal subroutines?

BEGIN, CHECK, INIT and END are not subroutines, they're blocks. You can have a subroutine named any of these and it won't cause any problems.

-sam

  • Comment on Re: Which are perl-internal subroutines?

Replies are listed 'Best First'.
Re^2: Which are perl-internal subroutines?
by eserte (Deacon) on Nov 18, 2007 at 08:56 UTC
    Did you try this? Just execute the following script
    sub BEGIN { warn "BEGIN called\n"; }
      Yeah, my mistake. I did try it actually, I just misread the results!

      -sam

        It's funny that you're getting so much ++ for being wrong :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-19 23:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found