It goes around it. You need to call a subroutine for it to be executed... although it will still be compiled, which could cause compilation errors even before the script starts to run.
Rob -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 29, 2002 1:38 PM To: [EMAIL PROTECTED] Subject: Question on PERL coding style... This might be a really strange question, but I need to ask - Does PERL execute from beginning through the program in a linear fashion, "jumping around" subroutines unless they're called? I have a program that's structured as shown below (assume vars and statements are different) and need to know if as it executes the subroutine is executed "inline" or only when it's called and the "flow" of the program goes around it until it hits the call at the end. Thanks! $var = something $var = something $var = something $var = something statememt if test $var = something statement end if Subroutine "zort" { $var = something statement $var = something statement $var = something statement } $var = something statement $var = something statement subroutine call of subroutine "zort" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]