in reply to
build mysql data structure from text file
Is this something a recursive function could do ? Sorry I have no code snippet to suggest but it looks recursive...!
Comment on
Re: build mysql data structure from text file
Replies are listed 'Best First'.
Re: Re: build mysql data structure from text file
by
Skeeve
(Parson)
on May 13, 2003 at 18:41 UTC
Of course you can solve it with recursion. But why? There is no need for it as it's really simple to solve it by iterating. The core of my code above simply stores for each number of tabs the id of the parent in an array. That's it.
[reply]
In Section
Seekers of Perl Wisdom