Subject: | "say" doesn't append a newline |
----------------------------------------------
use 5.014;
use warnings;
use FCGI;
my $request = FCGI::Request();
while($request->Accept() >= 0) {
print "Content-type: text/plain\n\n";
say "Hello,";
say "World!";
}
----------------------------------------------
The above code, when running as FCGI, outputs "Hello,World!".
When running as a CGI script, or simply from the command-line, it
outputs "Hello,\nWorld!\n" as it should.
In case it matters, this is using mod_fcgid on Apache 2.2.22.