http://www.perlmonks.org?node_id=472681


in reply to Tree Structure and Db

... and if you are using Postgres there is ltree which works quite well

- dEvNuL