Hi Tom--
Yes, there is a limit to the length of strings that can be passed. The
usual way to handle this is to write smaller chunks, e.g. to write each
line as a separate operation. It's often done using an array of strings,
where each element of the array is a line.
If your string isn't line-based, you may just have to use arbitrary
breaks, e.g. every 4000 chars, something like this:
# write long string to output file
local $content = $text_string;
while (length($content)>0) {
write($channel, substr($content, 1, 4000));
$content = substr($content, 4001);
}
HTH.
--Clay
Clay Helberg
Senior Consultant
TerraXML
1380 Forest Park Circle, Suite 100
Lafayette, CO 80027