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/

Reply via email to