Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Re: where do you put your subs

by ajwans (Scribe)
on Mar 08, 2002 at 11:18 UTC ( [id://150284]=note: print w/replies, xml ) Need Help??


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

I like to do
#!/usr/bin/perl -w exit main(); sub main { ... return (0); }
Maybe I'm just a C programmer at heart.



1. dude, what does mine say?
2. "sweet", what about mine?
3. "dude", what does mine say?
4. GOTO 2

Replies are listed 'Best First'.
Re: Re: Re: where do you put your subs
by demerphq (Chancellor) on Mar 08, 2002 at 13:10 UTC
Re: Re: Re: where do you put your subs
by Juerd (Abbot) on Mar 08, 2002 at 11:47 UTC
    The code-flow is not really logical: why do you exit before performing your tasks? Is there any reason to have the exit statement before the sub declaration?

    And real C programmers at heart write some for (;;) instead of ... 4 GOTO 2 :)

    44696420796F7520732F2F2F65206F
    7220756E7061636B3F202F6D736720
    6D6521203A29202D2D204A75657264
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-18 23:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found