I prefer sticking them in the bottom in the order they are called. This way when I open a script at a glance I can see the main logic and then as need be move into the subs.
-----Original Message----- From: Rodney Wise [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 09, 2003 12:29 PM To: [EMAIL PROTECTED] Subject: Re: PERL code execution rule? Thanks everyone for your help. I'm working on a PERL script for the "WWWboard" originally written by Matt Wright. PERL isn't my primary language (as I'm sure you all can see) ... although I'm finding it very powerful and useful. Apparently, Matt used a lot of global variables in his subroutines... I thought that might be a dangerous practice and it also makes the subroutines not very portable. But, I also believe I read somewhere that the subroutines need to be declared.... I must have been mistaken.... 'cause I can't find that reference info now... AND you guys are absolutely correct... my "supposed" declarations are actually instructing the subroutines to execute. I will correct this immediately. As a side note.... Where is the best place to put the subroutines? After the exit command or in the beginning of the script? Any preferences? Thanks, -- ... `·.¸¸.·´¯`·.¸¸.·´¯`·-> rodney -- 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]