Re: Trouble with returning data from recursive sub
From: Anno Siegel (anno4000_at_lublin.zrz.tu-berlin.de)
Date: 01/06/05
- Next message: daveyand: "Re: Multiple lines of html store in variable non messy way"
- Previous message: daveyand: "Re: Multiple lines of html store in variable non messy way"
- In reply to: sabio62: "Trouble with returning data from recursive sub"
- Next in thread: sabio62: "Re: Trouble with returning data from recursive sub"
- Reply: sabio62: "Re: Trouble with returning data from recursive sub"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: daveyand: "Re: Multiple lines of html store in variable non messy way"
- Previous message: daveyand: "Re: Multiple lines of html store in variable non messy way"
- In reply to: sabio62: "Trouble with returning data from recursive sub"
- Next in thread: sabio62: "Re: Trouble with returning data from recursive sub"
- Reply: sabio62: "Re: Trouble with returning data from recursive sub"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|