Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: where do you put your subs

by BeernuT (Pilgrim)
on Mar 08, 2002 at 01:27 UTC ( [id://150241]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to where do you put your subs

I prefer this type of setup:
#!/usr/bin/perl use (pragmas); use Modules; my $var; declare any global variables here main code goes here Then my subs are at the bottem. usually in order of importance
It's just the style that I adapted to. I have no paticular reason to use it other than its what keeps me sane :) I have tried to put subs at the top, in the middle, spread around, but I like having all my code in the order above. Makes it easier for me to work with.

-bn

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150241]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.