return array/hash ref from function
From: Andrew Gaffney (agaffney_at_skylineaero.com)
Date: 05/12/04
- Next message: Wiggins D Anconia: "Re: return array/hash ref from function"
- Previous message: Hoenie Luk: "Text::KwikiFormatish on Win32 system"
- Next in thread: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 12 May 2004 14:12:50 -0500 To: beginners <beginners@perl.org>
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?
-- Andrew Gaffney Network Administrator Skyline Aeronautics, LLC. 636-357-1548
- Next message: Wiggins D Anconia: "Re: return array/hash ref from function"
- Previous message: Hoenie Luk: "Text::KwikiFormatish on Win32 system"
- Next in thread: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Maybe reply: Wiggins D Anconia: "Re: return array/hash ref from function"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|