alienhuman has asked for the wisdom of the Perl Monks concerning the following question:
A CGI script that takes in a number of text fields and writes them to a text file seems to be truncating some of the larger strings. This script has been working fine for over a year now, and the one thing that all the truncated strings have in common is that they are exceptionally long (> 7 pages of text), so I don't think it's a problem with the script logic.
All the script itself does is grab the strings from the query params, throw them into string variables or hashes, perform regular expression type magic, and write them to a file. I don't think there is a problem with the regexp, because they are pretty harmless "remove certain characters" pattern match and substitution. And they are only truncating the fields with very long strings--I would expect a bad regexp to trash everything.
The strings seem to be getting truncated in the neighborhood of 46060 characters (~45k).
My questions:
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI post truncating string?
by petdance (Parson) on Nov 19, 2001 at 23:35 UTC | |
|
Re: CGI post truncating string?
by cfreak (Chaplain) on Nov 20, 2001 at 01:22 UTC | |
|
Re: CGI post truncating string?
by jlongino (Parson) on Nov 20, 2001 at 00:45 UTC | |
|
Re: CGI post truncating string?
by Ven'Tatsu (Deacon) on Nov 20, 2001 at 00:41 UTC | |
|
Re: CGI post truncating string?
by Spudnuts (Pilgrim) on Nov 20, 2001 at 00:26 UTC | |
|
Re: CGI post truncating string?
by Dr. Mu (Hermit) on Nov 20, 2001 at 01:23 UTC | |
|
Re: CGI post truncating string?
by andye (Curate) on Nov 20, 2001 at 16:00 UTC | |
|
Re: CGI post truncating string?
by tachyon (Chancellor) on Nov 20, 2001 at 19:00 UTC |