First, you probably want to look at
GD which will enable you to draw the graph that you are talking about. There are a couple of scripts that do network diagrams, and you probably want to look at them as well. Some reinventing of the wheel is a good thing, but too much is a waste of time.
Second, if you want to generate a single map with all of the computers, you are going to need to learn a bit about trees and how to describe the connections between routers. Basically, you'll need to do some sort hash that lists each gateway and describes the gateways that it is connected to, and where on your map you want to place the nodes (gateways). This is definetly non-trivial, so I would start working on it one slice at a time.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.