Re: Trouble with returning data from recursive sub

From: Anno Siegel (anno4000_at_lublin.zrz.tu-berlin.de)
Date: 01/06/05


Date: 6 Jan 2005 11:22:02 GMT

sabio62 <sabio62@yahoo.com> wrote in comp.lang.perl.misc:
> G'Day,
>
> I've got some trouble with not being able to access the data being
> returned from a sub; the sub in question is supposed to return a
> reference to an array of Multinode::Tree::Handle objects.
> The problem is evident inside the sub itself. The sub contains a
> recursive sub which in turn is updating an array beloning to the main
> sub ...
>
> I'd greatly appreciate if you can take a look at it and let me know
> what to do get the handles properly ...
>
> You may access the source code from this link:
>
> http://www.geocities.com/sabio62/perl/build_categories_tree_with_a_hash_as_values_01.pl.txt

Ugh. That's 290 lines of Perl. The problem should be demonstrable in
20 lines of code or less if you properly isolate it. Do that, and if
the process doesn't clear up the problem for you (it often does), then
post it and we can talk.

Anno



Relevant Pages

  • Re: How to call a Sub function from .ASPX file ?
    ... > be Shared (meaning that they are singleton objects that don't require a ... > This is also the disadvantage of Shared data and process. ... >> Sub TestFunct ... >> and modify your source code appropriately. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to call a Sub function from .ASPX file ?
    ... But some people are better at hiding it. ... >> Kevin Spencer ... >>> that includes all the Sub functions. ... >>> and modify your source code appropriately. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: How to call a Sub function from .ASPX file ?
    ... Files are source code. ... Functions can be Shared (meaning that they are singleton objects that ... Sub TestFunct(ByVal strInput As String) ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: IsNumeric
    ... Here's the steps to get the source code of IsNumeric: ... Sub Main ... as a static method, so you can reference Microsoft.VisualBasic.dll in your ... IsNumeric use the disassembled code as reference. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Webform in book wont work live, whats up?
    ... Check your code against that source code ... >>> public UserName as string ... >>> End Sub ...
    (microsoft.public.dotnet.framework.aspnet)