Well, after much testing, I've found the problem does not lie with mod_perl. I'm not sure of the source now, I just know how to recreate it. Originally it seemed like mod_perl but it was just a coincidence that it the problem started after making some configuration changes.
The only thing I need to do to recreate the problem is include a 'use Whatever::Module;' in a simple "hello world" Perl script under mod_cgi. Mod_perl does not ever append the 0. System and exec calls do not cause the 0 to be displayed either. I have no idea what is causing this as the setup is an out of the box Red Hat 7.2 installation. But that is off topic... But thanks to everyone who answered this post! - Mike -----Original Message----- From: Stas Bekman [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 8:56 PM To: Randal L. Schwartz Cc: Mike Wille; [EMAIL PROTECTED] Subject: Re: 0 being appended to non mod_perl scripts. Randal L. Schwartz wrote: >>>>>>"Mike" == Mike Wille <[EMAIL PROTECTED]> writes: >>>>> > > Mike> I am encountering a wierd problem where perl scripts running under a normal > Mike> cgi-bin (ie no mod_perl) have a '0' appended to the output. > > I've seen this happen when people mistakenly write: > > print system "foo"; > > instead of > > print `foo`; > > but of course they should have written: > > system "foo"; > > instead. > > As to why it's not happening in an Apache::Registry script, I cannot > say. > Because , the output of system(), exec(), and open(PIPE,"|program") calls will not be sent to the browser unless your Perl was configured with sfio. http://perl.apache.org/guide/porting.html#Output_from_system_calls -- _____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/