Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Collecting data in a recursive routine.

by chipmunk (Parson)
on Mar 07, 2002 at 04:38 UTC ( [id://149939]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $cats_sth = $dbh->prepare(<<"EndOfSQL");
      SELECT category_id, name, parent
      FROM   $sql{categories}
    ...
            print_category($cats->[$child_id], $cats, "$indent  ");
        }
    }
    
  2. or download this
    [
       [ name, parent id, [ child ids ] ],
       [ name, parent id, [ child ids ] ],
       ...
    ]
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://149939]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-04-19 23:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found