Re: I am needing a gentle introduction to accessing a perl array from a reference




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 for
consultation.
Here is a piece of the code in question:
:
up here, the DBI connection to the database, the select statement,
etc. occurs
Can you either post the fully relevant portions of your code, or
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
.



Relevant Pages

  • Re: I am needing a gentle introduction to accessing a perl array from a reference
    ... Can you either post the fully relevant portions of your code, ... elaborate on some aspects? ... code in a web services program, as well as parts from a 50+ line ... hash given a reference. ...
    (comp.lang.perl.misc)
  • Re: Huge project - long build time
    ... projects and I'm having no problems whatsoever. ... As I finish web services and class libraries I remove them from my solution. ... For every single project in my solution I reference the DLL directly, ...
    (microsoft.public.dotnet.general)
  • RE: [WebMethod] System.NullReferenceException: Object reference not set to an instance of an object.
    ... Web services, as any web app ... (especially on Windows server 2003) ... you're seeing a null reference exception when you ... tell your program to return the reference returned by the directory call. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: link problem in a C++ web service client
    ... > Java web services and need to test them with C++ clients. ... I'm having problems with the C++ client. ... > reference to the service WSDL and named the reference donow11service, ... > Creating web service proxy file for donow11service ... ...
    (microsoft.public.dotnet.languages.vc)
  • Re: web service reference
    ... When I make a change to a web service, I have to 'Add Web Reference' for the changes to take affect. ... If I do 'Update web reference' the web app does not see the web service changes. ... The web services are on the same box as I'm developing on, the .wsdl files are pointing to the correct location, but the changes aren't happening unless I do 'Add Web Reference'. ...
    (microsoft.public.dotnet.framework.aspnet)