Edward WIJAYA wrote: > Hi, > > Would like to know, where is the best place to > put collection of subroutines in a Perl program, > is it after "main" or before? Any caveat?
I generally put the "main" code at the top and subs below. Perl doesn't care unless you want to call a sub without parens, in which case you need to define the sub above it's use or use a "forward declaration". I suggest just always using parens when you call subs. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>