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


in reply to Internet usage

If you want usage for one computer interface under Linux, try to install "vnstat". For a router normally you should be able to use Net::SNMP which is a standard way of obtaining interface counter information.