Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
No such thing as a small change
 
PerlMonks  

Re^2: problems passing variables between subroutine

by GrandFather (Cardinal)
on Sep 05, 2012 at 02:04 UTC ( #991721=note: print w/ replies, xml ) Need Help??


in reply to Re: problems passing variables between subroutine
in thread problems passing variables between subroutines

Please don't encourage needless use of prototypes!

Also in simple cases passing arrays by reference serves only to obscure the code so don't do that. Just because a technique fixes a problem in some cases, doesn't mean it should be used in all cases. Be selective about the habits you acquire and apply them along with a little consideration rather than blindly following a set of rules.

True laziness is hard work


Comment on Re^2: problems passing variables between subroutine
Re^3: problems passing variables between subroutine
by Anonymous Monk on Sep 05, 2012 at 09:11 UTC

    Also in simple cases passing arrays by reference serves only to obscure the code so don't do that.

    Nonsense

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2014-04-23 11:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (541 votes), past polls