in reply to BEGIN and END with -p or -n

What BEGIN and END really does is documented in perlsub. It wouldn't make much sense to repeat it in perlrun.

Replies are listed 'Best First'.
Re^2: BEGIN and END with -p or -n
by Tanktalus (Canon) on Dec 01, 2005 at 15:05 UTC

    But it would make great sense that if you're going to single them out in perlrun, that you point to perlsub "for more information on how BEGIN and END work."

Re^2: BEGIN and END with -p or -n
by jmcnamara (Monsignor) on Dec 01, 2005 at 15:27 UTC

    "What BEGIN and END really does is documented in perlsub".

    Actually perlsub points back to perlmod:

    The BEGIN , CHECK , INIT and END subroutines are not so much subroutines as named special code blocks, of which you can have more than one in a package, and which you can not call explicitly. See "BEGIN, CHECK, INIT and END" in perlmod

    --
    John.