|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Bandwidth Usageby clintp (Curate) |
| on Sep 21, 2001 at 17:08 UTC ( [id://113937]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
We did something similar here but not for bandwidth usage. It might prove helpful. We took a filehandle and did a tie() on it, and selected it as the default output filehandle.
Using something like this you could count the bytes that go by unobtrusively and then when the object is destroyed (the program ends), put the data out to a logfile somewhere..
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||