Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: how to construct tree from parent pointer list

by ikegami (Pope)
on Mar 21, 2006 at 22:40 UTC ( #538333=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use Tree ();
    
    ...
    foreach (@roots) {
       ...
    }
    
  2. or download this
    die("Invalid data: Multiple roots\n")
       if @roots > 1;
    ...
    my $root = $roots[0];
    
    ...
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2020-11-25 01:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?