In article <002301c135cd$9ada2540$0200005a@drevlin>,
[EMAIL PROTECTED] (Brian) wrote:
> But, I'm not slurping it all at once (going line by line), which allows
> for me to check the size as I go. If somebody sends a 40 meg message,
> I'd like to catch it early before the server has a heart attack and dies
> on me.
if this mail lives in a file, then you can simply check the file
size, perhaps with the file test operator -s.
my $size = -s $file;
see the section of the perlfunc manpage that talk about these:
http://www.perldoc.com/perl5.6/pod/func/X.html
:)
--
brian d foy <[EMAIL PROTECTED]> - Perl services for hire
CGI Meta FAQ - http://www.perl.org/CGI_MetaFAQ.html
Troubleshooting CGI scripts - http://www.perl.org/troubleshooting_CGI.html
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]