Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Return value from function

by perlCrazy (Monk)
on Jul 12, 2007 at 17:47 UTC ( [id://626289]=note: print w/replies, xml ) Need Help??


in reply to Re: Return value from function
in thread Return value from function

Thanks for reply.
Is this the best option ? why not pass reference then copy locally instead of returning from function directly.
How much difference this will make and what should be the best prcatice.
Also if checking the retrun value from calling function, in case of Hash, if we do like that if (%hash), then this will
not work in all case. If we return ref, then we can test easily like that, if ($ref). Any suggestions or opinion ?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-19 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found