Skip Menu |

This queue is for tickets about the Data-Walk CPAN distribution.

Report information
The Basics
Id: 18202
Status: resolved
Priority: 0/
Queue: Data-Walk

People
Owner: GUIDO [...] cpan.org
Requestors: jpierce [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: 0.02



Subject: maxdepth
I can imagine cases where it'd be nice to be able to specify a maxdepth for recursion.
I think I will rather introduce a new variable containing the current depth of the traversal. You can then query that variable in a suitable preprocess function. Would that resolve your problem? Regards and thanks for your interest, Guido
Subject: Re: [rt.cpan.org #18202] maxdepth
Date: Fri, 17 Mar 2006 12:24:11 -0500
To: bug-Data-Walk [...] rt.cpan.org
From: Jerrad Pierce <belg4mit [...] MIT.EDU>
No, because there is no way to break out of the recursion, let alone continue parsing to the given depth. -- H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2x8 Opr8bBBidccAAAA= -- MOTD on Sweetmorn, the 3rd of Discord, in the YOLD 3172: Think I've gone insane, can't remember my own name. Think I've gone insane... --Therapy?
From: guido [...] imperia.net
On Fri Mar 17 12:24:49 2006, belg4mit@MIT.EDU wrote: Show quoted text
> No, because there is no way to break out of the recursion, let alone > continue parsing to the given depth.ret
If you return an empty list from the preprocess function, the recursion will finish. The docs are a little bit vague about that feature. I will make that more clear in the next version. Regards, Guido
Subject: Re: [rt.cpan.org #18202] maxdepth
Date: Tue, 21 Mar 2006 19:58:02 -0500
To: bug-Data-Walk [...] rt.cpan.org
From: Jerrad Pierce <belg4mit [...] MIT.EDU>
I don't see how using the pre-processor is a solution, but perhaps documentation would help (and you might include maxdepth as an example in the pod) -- H4sICNoBwDoAA3NpZwA9jbsNwDAIRHumuC4NklvXTOD0KSJEnwU8fHz4Q8M9i3sGzkS7BBrm OkCTwsycb4S3DloZuMIYeXpLFqw5LaMhXC2ymhreVXNWMw9YGuAYdfmAbwomoPSyFJuFn2x8 Opr8bBBidccAAAA= -- MOTD on Setting Orange, the 7th of Discord, in the YOLD 3172: CECI N'EST PAS UNE MESSAGE ELECTRONIQUE