Re: I am needing a gentle introduction to accessing a perl array from a reference
- From: RedGrittyBrick <RedGrittyBrick@xxxxxxxxxxxxxxxxx>
- Date: Fri, 09 Jan 2009 14:52:21 +0000
Larry W. Virden wrote:
On Jan 8, 5:25 pm, Tim Greer <t...@xxxxxxxxxxxxx> wrote:Larry W. Virden wrote:I have some legacy code, the author of whom is no longer available forCan you either post the fully relevant portions of your code, or
consultation.
Here is a piece of the code in question:
:
up here, the DBI connection to the database, the select statement,
etc. occurs
elaborate on some aspects? Some parts of the code you've posted don't
seem to relate to the other, so either relevant code is missing, or...?
Thank you for your question. The bit of code was from 1600+ lines of
code in a web services program, as well as parts from a 50+ line
program which invokes one method from the web service, interacts with
other programs, to generate some internal information. I don't have
rights to distribute the whole program, so I was trying to (and
obviously failed at) picking just a small portion to get at a better
understanding at how one would generically access the elements of a
hash given a reference. I need to do more reading, and have some
references elsewhere in this thread I will use to try and learn more.
Thank you all so much for your help.
Just a suggestion:
Use Data::Dumper to find out what you have in various variables in the actual program being worked on.
The output of Data::Dumper can be used to initialise a variable. You can therefore include that output as code in new tiny throwaway Perl programs to test out various ways to further manipulate or process those data structures.
I find debugging tiny programs is easier than debugging big/complex poorly understood ones. You also end up with small programs you can post here for further help.
--
RGB
.
- References:
- I am needing a gentle introduction to accessing a perl array from a reference
- From: Larry W. Virden
- Re: I am needing a gentle introduction to accessing a perl array from a reference
- From: Tim Greer
- Re: I am needing a gentle introduction to accessing a perl array from a reference
- From: Larry W. Virden
- I am needing a gentle introduction to accessing a perl array from a reference
- Prev by Date: Re: I am needing a gentle introduction to accessing a perl array from a reference
- Next by Date: Re: Circular lists
- Previous by thread: Re: I am needing a gentle introduction to accessing a perl array from a reference
- Next by thread: Pod 2 html formatter that will run online?
- Index(es):
Relevant Pages
|