NAME

Class::Tree - Build and print hierarchical information such as directory trees and C++ classes.

SYNOPSIS

use Class::Tree;

# Or ...
# use Class::Tree qw($root);

my($tree) = new Class::Tree;

DESCRIPTION

The Class::Tree module provides a simple way of building:

  • Directory trees

  • C++ class trees

The $classRef -> {'root'} hash reference

This is an alias for $root. See below.

The $root hash reference

This points to the root of the tree.

WARNING re Perl bug

As always, be aware that these 2 lines mean the same thing, sometimes:

  • $self -> {'thing'}

  • $self->{'thing'}

The problem is the spaces around the ->. Inside double quotes, "...", the first space stops the dereference taking place. Outside double quotes the scanner correctly associates the $self token with the {'thing'} token.

I regard this as a bug.

AUTHOR

Class::Tree was written by Ron Savage <rpsavage@ozemail.com.au> in 1997.

LICENCE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.