I think maybe what you're thinking of when you say subroutines can be
"declared" is subroutine prototyping.  Check out this article that has a
pretty good explanation:
http://wdvl.internet.com/Authoring/Languages/Perl/ProPerl/properl3-1.html

-----Original Message-----
From: Rodney Wise [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 09, 2003 9:29 AM
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]

Reply via email to