tree.pl - Test Tree and Tree::Persist
tree.pl [options]
Options: -copy TableName -data_structure -help -starting_id N -table_name TableName -verbose
All switches can be reduced to a single letter.
Exit value: 0.
Copy the rows from the table specified by -table_name to the table specified by -copy.
This option causes the -data_structure option to be ignored.
When -copy is not used, the tree is displayed in 1 of 2 ways. See -data_structure for details.
This option is only used when the -copy option is not used.
When -data_structure is used, the program displays a data structure suitable for encoding in JSON.
When not used (and -copy is not used), the program pretty-prints the menu. This is the default output.
Print help and exit.
The id of the root of the tree.
Defaults to 1.
The name of the table to process.
This option is mandatory.
Print progress messages.
tree.pl Tree and Tree::Persist.
To install DBIx::Tree::Persist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Tree::Persist
CPAN shell
perl -MCPAN -e shell install DBIx::Tree::Persist
For more information on module installation, please visit the detailed CPAN module installation guide.