in reply to How can I determine the size of a file?

I'm guessing that you wanted to do this from a cgi, right?

Assuming that the file is:
A) within the chroot jail made by Apache
B) readable by the user

you can do something like
my $file = "some/file"; # relative path within chroot my $fsize = (stat($file))[7]; # in bytes
<!- Added CODE tags, changed title (turnstep) -->