is there a maximum output character length ?

2008-05-21 Thread william
Hello, I am just so tired after hours of debugging, why does is never write text into the file completely ? It has not problem if using CGI. Let's say if I have $ruleStr = aa eee; open(PARSER,$self-{parser}.pm); print PARSER $ruleStr; It will write a few characters

Re: is there a maximum output character length ?

2008-05-21 Thread John ORourke
william wrote: Let's say if I have $ruleStr = aa eee; open(PARSER,$self-{parser}.pm); print PARSER $ruleStr; It will write a few characters only, not complete. Is there a thread problem or something ? You need to explicitly close the file - under CGI, your

Re: is there a maximum output character length ?

2008-05-21 Thread william
On Thu, May 22, 2008 at 4:30 AM, John ORourke [EMAIL PROTECTED] wrote: william wrote: Let's say if I have $ruleStr = aa eee; open(PARSER,$self-{parser}.pm); print PARSER $ruleStr; It will write a few characters only, not complete. Is there a thread problem or

Re: is there a maximum output character length ?

2008-05-21 Thread John ORourke
william wrote: On Thu, May 22, 2008 at 4:30 AM, John ORourke [EMAIL PROTECTED] wrote: william wrote: It will write a few characters only, not complete. Is there a thread problem or something ? You need to explicitly close the file - under CGI, your program exits at the end of

Re: is there a maximum output character length ?

2008-05-21 Thread william
On Thu, May 22, 2008 at 4:50 AM, John ORourke [EMAIL PROTECTED] wrote: william wrote: On Thu, May 22, 2008 at 4:30 AM, John ORourke [EMAIL PROTECTED] wrote: william wrote: It will write a few characters only, not complete. Is there a thread problem or something ? You need to

Re: [OT] is there a maximum output character length ?

2008-05-21 Thread John ORourke
Well thanks! Under regular CGI, every time your browser requests a page, Apache has to find your script, load Perl, compile your script and any modules you use, run it, and exit Perl. Under mod_perl, all the loading and compiling is done when Apache starts, not on every request - it's doing

Re: [OT] is there a maximum output character length ?

2008-05-21 Thread Dodger
If you have a reason to leave it open, you can always set autoflush on the file. open FO, file_out; my $was = select FO; local $| = 1; select $was; print FO a; print FO b; etc. 2008/5/21 John ORourke [EMAIL PROTECTED]: Well thanks! Under regular CGI, every time your browser requests a page,