in reply to Re^5: What is the scope of BEGIN? Or... when does it "begin?" (steps)
in thread What is the scope of BEGIN? Or... when does it "begin?"

Yes, clearer, but there are two things:

1) There was a statement by someone before that BEGINs have no order in their precedence or execution, and I think your explanation shows that there is. Their order and precedence goes in sequence to a very well-defined list (the one you enumerated). Is that not true?

2) you didn't address the open issue regarding when $ENV has value(s). Randall says they don't at BEGIN time, but it seems they do. What about this?

  • Comment on Re^6: What is the scope of BEGIN? Or... when does it "begin?" (steps)

Replies are listed 'Best First'.
Re^7: What is the scope of BEGIN? Or... when does it "begin?" (steps)
by tye (Sage) on May 06, 2005 at 18:02 UTC

    2) Of course %ENV is filled in before any BEGIN ever gets run. The nearby reply shows that to be true (and anything else just doesn't make sense).

    1) Yes, I'm correct. But that just means that BEGIN blocks don't have any precedence over each other that impacts their order. They have to have an order, of course, because they don't run in parallel. The order they run in is the order they get compiled in (because they don't have any precedence over each other). (:

    - tye