> I have a number of functions in a program I'm writing that return a
reference to 
> an array or hash. In the functions, I declare the variable to return
with 'my' 
> which I'm finding out is bad. Should I declare variables to return from a 
> function with 'our'? Do I need to make sure I don't have conflicting
variable 
> names from other functions? What pitfalls do I need to know about when
doing this?
> 

Need to address why you think creating them with 'my' is bad when
returning them first, it isn't (as long as you are truly returning
them).  Use 'my' until you know you don't :-).

See if this helps:

http://perl.plover.com/FAQs/Namespaces.html

It is *well* worth the read...

http://danconia.org

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to