Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Re: Re: where do you put your subs

by demerphq (Chancellor)
on Mar 08, 2002 at 13:10 UTC ( [id://150302]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: where do you put your subs
in thread where do you put your subs

See now I would write
sub main { } exit main;
But when you do your main as a sub its different to doing your main as code as it ivolves a lexical scope. But this is good practice, in fact tye somewhere has a node covering a similer but more involved version of the same thing.

Yves / DeMerphq
--
When to use Prototypes?
Advanced Sorting - GRT - Guttman Rosler Transform

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-19 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found