I have done neither with Perl so far, but these key words should give you an idea what to search for. A quick search showed up tridens, which might do what you want.
In reply to Re^3: Matrix kind of graph
by moritz
in thread Matrix kind of graph
by jthomas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |