John W. Krahn wrote:
Rob Dixon wrote:
yitzle wrote:
OK... I got this script that gets a lot of hits -> generates high
bandwidth.
Is there a simple way to check the amount of bytes printed to STDOUT so I
can track the bandwidth it is generating?
my $nbytes = tell STDOUT;
tell() usually only works on actual files and only on files that are opened
for input (it doesn't work with STDOUT or STDIN on my Linux system.)
OK, thanks John. Then I guess it needs some experimentation as it works fine on
my
Windows system.
I was hoping it was OK everywhere as it's not ambiguous (only fseek on a
terminal
device seems unlikely) and as far as I know the C ftell() function is fine on
STDOUT, or maybe that's platform-dependent too.
Rob
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/