in reply to CGI post truncating string?

If you aren't already, you might want to include:
use CGI::Carp qw(fatalsToBrowser);
under your other  use CGI; statements. It may return useful information that might otherwise go unnoticed. For an example, check out this.

--Jim

Update: I thought my code was error free for a year and a half.