| Vorxion 2004-03-19, 1:26 pm |
| In article <1073579301.523748@news1.bigplanet.com>, Jack B. Pollack wrote:
>How can I determine/test the length of a particular file using CGI/PERL?
Clue #1: There's no such thing as "CGI/PERL". There's a Perl/Tk, but that
is entirly a different story. Learn what you're actually dealing
with before you pipe up, so you won't look completely ignorant.
CGI has nothing to do with testing for lengths in perl. Actually,
your question belongs in comp.lang.perl.misc, where they will
promptly point you to my Clue #2 with "RTFM", most likely.
Clue #2: Read the documentation before asking questions of this type.
This is so basic, I don't know whether to laugh or cry over
the fact that you asked it without looking it up. Chances are,
if you can't figure that out on your own, you shouldn't be
tinkering with whatever you're tinkering with. Yes, it's -that-
basic.
Clue #3: State the -full- question. Is the file on the filesystem? Are
you trying to determine its size as it comes in from a pipe or
socket on the fly? I'll assume "on the filesystem", since you
don't seem competant enough to be dealing with pipes and sockets,
or possibly even just handling STDIN.
Probably you want to `perldoc -f stat`.
Thank you for lowering the collective IQ of this newsgroup. We're all so
very appreciative.
--
Vorxion - Member of The Vortexa Elite
|