Re: Tree-like data structures in Perl

2000-05-24 Thread Douglas Wilson
On 05/23/00, ""Douglas Wilson" <[EMAIL PROTECTED]>" wrote: > > > one.html which contains something like > > > one > > > - a > > > - b > > > two > > > three Here's a simpler version, even though I'm still not sure that its what he was originally after (really, I gotta get back to work now

Re: Tree-like data structures in Perl

2000-05-23 Thread Douglas Wilson
On 05/23/00, "Garrick Staples <[EMAIL PROTECTED]>" wrote: > You just want each page to have the links for the files/directories in that > immediate directory? np... >From this part of his description, I assume he also wants to list all the directories at the same level in the parent directory:

Re: Tree-like data structures in Perl

2000-05-23 Thread Garrick Staples
You just want each page to have the links for the files/directories in that immediate directory? np... ## Warning, written on Unix, not tested in windows # This creates an HTML page in each directory with links for that directory, like a # directory listing in a web browser. $startingdir='/home

Re: Tree-like data structures in Perl

2000-05-23 Thread Ranga
xpand... so I do not have to start from first principles. Thanks... Ranga Nathan Reliance Technology Consultants Inc. On 22 May 00, at 18:15, Douglas Wilson wrote: Date sent: Mon, 22 May 2000 18:15:57 Subject: Re: Tree-like data structures in Perl To:

Re: Tree-like data structures in Perl

2000-05-22 Thread Douglas Wilson
On 05/22/00, "Eduard Pandele <[EMAIL PROTECTED]>" wrote: > This is my problem : I have to build a hierarchical menu in HTML from a > tree of directories. > Let's say I have this directory structure : > > root/ > root/one > root/one/a > root/one/b > root/two > root/three > root/three/a > > I mus

RE: Tree-like data structures in Perl

2000-05-22 Thread Garold L. Johnson
You don't really need Per tree structures. The directory is already tree structured, so what you need to do is to walk the directory tree producing the output directly. Walk a single level of the directory. If the file is a directory, either process it immediately or place it in an array (a stack

Re: Tree-like data structures in Perl

2000-05-22 Thread Ken Fox
>I could made up a simple program to do this, if only i >could implement somehow a >tree data structure in Perl >(after all, I should use a tree construction algorithm and > walk through this tree >to generate the html files). there are a number of tree modules on CPAN derived from Sedgewick

Tree-like data structures in Perl

2000-05-22 Thread Eduard Pandele
Hello ! This is my problem : I have to build a hierarchical menu in HTML from a tree of directories. Let's say I have this directory structure : root/ root/one root/one/a root/one/b root/two root/three root/three/a I must get a series of html documents which should allow me to "walk" through th