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 :-)