Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: organizing program structure

by BrowserUk (Pope)
on Jul 22, 2010 at 21:51 UTC ( #850926=note: print w/replies, xml ) Need Help??


in reply to organizing program structure

i've been told i shouldn't use subroutines in perl programs

Whomever told you that, either doesn't know what they're talking about; or you've misunderstood them. The latter conclusion seems possible as you seem to equate subroutines with "gotos"; which are quite separate things.

Perhaps you could write and post a ~20 line program that uses a subroutine. We might then be able to get to the bottom of the confusion.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://850926]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (6)
As of 2018-04-25 10:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?