http://qs1969.pair.com?node_id=824096

myuserid7 has asked for the wisdom of the Perl Monks concerning the following question:

Is possible to reconstruct the tree diagram textfile made from tree output ??

Need help please

for example

|-- DIR_COLORS

|-- X11

| |-- WindowMaker

| | |-- WMGLOBAL

| | `-- WindowMaker

| |-- XF86Config

| |-- Xresources

| |-- Xsession

| |-- app-defaults

| | |-- Beforelight

| | |-- Bitmap

| | `-- Xvidtune

| |-- glx.conf

| |-- lbxproxy

| | `-- AtomControl

|-- xinetd.conf

|-- xinetd.d

| |-- cups-lpd

| |-- cvs

| |-- fam

| |-- proftpd-xinetd

| |-- rsync

| `-- sshd-xinetd

|-- xml

| `-- catalog

`-- xpdfrc

reparsed or reconstructed to

|-- ./DIR_COLORS

|-- ./X11

| |-- ./X11/WindowMaker

| | |-- ./X11/WindowMaker/WMGLOBAL

| | `-- ./X11/WindowMaker/WindowMaker

| |-- ./X11/XF86Config

| |-- ./X11/Xmodmap

| |-- ./X11/Xresources

| |-- ./X11/Xsession

| |-- ./X11/app-defaults

| | |-- ./X11/app-defaults/Beforelight

| | |-- ./X11/app-defaults/Bitmap

| | `-- ./X11/app-defaults/Xvidtune

| |-- ./X11/glx.conf

| |-- ./X11/lbxproxy

| | `-- ./X11/lbxproxy/AtomControl

|-- ./xinetd.conf

|-- ./xinetd.d

| |-- ./xinetd.d/cups-lpd

| |-- ./xinetd.d/cvs

| |-- ./xinetd.d/fam

| |-- ./xinetd.d/proftpd-xinetd

| |-- ./xinetd.d/rsync

| `-- ./xinetd.d/sshd-xinetd

|-- ./xml

| `-- ./xml/catalog

`-- ./xpdfrc