Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: where do you put your subs

by djantzen (Priest)
on Mar 08, 2002 at 07:18 UTC ( [id://150252]=note: print w/replies, xml ) Need Help??


in reply to where do you put your subs

I like to group subs by category, and alphabetically within the category. So, I often do:

package Hello; # constructor new {} # accessors getA {} getZ {} # mutators setA {} setZ {} # instance methods doA {} doZ {} # class methods doA {} doZ {}
If there's a main method this typically goes at the end.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://150252]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found