One of the reasons I have learned is that you're able to maintain a better flow of
control. With your logic defined at the top of the program, readability becomes
easier. You define what it is you want the app to accomplish. (The meat) and then you
design your output and user interface funtions through the use of subs (The sizzle).
Changes are more easily managed this way and it makes for reusable code. There of
course are many good books on standardization and coding guidelines. If you go to
Perl.com there is small section on this topic. Couldn't tell you exactly where though.
Another place to review is the perlstyle manpage.
Your code is your own however. It just depends on whom will have to deal with it in
the event you leave or give it away. That's 2cents for whatever it's worth.
GL,
Mark Bergeron'
-----Original Message-----
From: "Stephan Tinnemeyer"<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Date: Thu Sep 20 06:22:29 PDT 2001
Subject: structure of scripts (newbie Q)
>I hope I did not overread this in the FAQ:
>
>In some tutorials I found the recommendation to put the code for
>subroutines at the end of a script (i. e. after calling them) but it was
>never explained why I should do so. I only see disadvantages:
>
>1. In my simple mind this would only make the interpreter jump through
>the script which should not enhance the performance.
>
>2. Human beings have to jump through the script as well when they
>attempt to understand how the script is working.
>
>Can somebody give me a clue of the advantages of this structure?
>
>TIA
>
>Stephan
>--
>Dipl.-Chem. Stephan Tinnemeyer
>Lindenallee 20
>24105 Kiel
>Germany
>
>--
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
. . . . .__ . ,
|\/| _.._.;_/ _.._ _| [__)._.* _| _ _ -+-
| |(_][ | \ (_][ )(_] [__)[ |(_](_](/, |
._|
___________________________________________________
GO.com Mail
Get Your Free, Private E-mail at http://mail.go.com
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]