Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Return value from function

by perlCrazy (Monk)
on Jul 12, 2007 at 17:47 UTC ( #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? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2022-05-17 21:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (68 votes). Check out past polls.

    Notices?