print print "Hello" - returns different values when executed from shell and mod-perl

[prev] [thread] [next] [Date index for 2004/11/19]

From: Rathna N
Subject: print print "Hello" - returns different values when executed from shell and mod-perl
Date: 05:11 on 19 Nov 2004
Hi,
I'm new to Apache/mod-perl. I hope I'm asking this question in the right forum.

When I executed a script having " print print "Hello"; " at shell, it
returns "Hello1",
but when I executed thru mod-perl it returns "Hello5".

CODE SNIPPET:
print "Content-type: text/html\n\n"; 
print (print "hello");


why is the return value of print is different ?

thanks in advance,
Rathna.

        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

print print "Hello" - returns different values when executed from shell and mod-perl
Rathna N 05:11 on 19 Nov 2004

Generated at 11:27 on 21 Dec 2004 by mariachi v0.52