Re: BEGIN block question

2005-10-03 Thread Peter Rabbitson
On Sun, Oct 02, 2005 at 12:34:53PM -0700, John W. Krahn wrote: To sum what up? What who is saying? What previous e-mail? Crap... I apologize, the email was way too long so I stripped it entirely, being sure that the list will se Jendas reply. It was very thorough so I am posting it below:

Re: BEGIN block question

2005-10-02 Thread Peter Rabbitson
Just to sum it up, so I make sure I got what you are saying. From the previous e-mail I understand that: * Right after the use xxx statement is parsed the corresponding module which is 'use'd is fully parsed AND executed. This execution includes any top level code not enclosed in subroutines

Re: BEGIN block question

2005-10-02 Thread John W. Krahn
Peter Rabbitson wrote: Just to sum it up, so I make sure I got what you are saying. From the previous e-mail I understand that: To sum what up? What who is saying? What previous e-mail? John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: BEGIN block question

2005-10-02 Thread Charles K. Clarkson
Peter Rabbitson mailto:[EMAIL PROTECTED] wrote: : I have some trouble understanding why a BEGIN block behaves the : way it does. Here are two files to demonstrate: : [snip code] : What makes the difference? 'use' and 'BEGIN' blocks are compiled by Perl before our(). So your script is