Home: Perl Programming Help: Beginner:
while loop with diamond operator



hp51185
New User

Aug 7, 2012, 4:58 AM


Views: 1451
while loop with diamond operator

Hello

I am trying to run a perl script on tomcat server. I am getting the data from the incoming http request in a variable which collects the headers as well as the text file attachment data. The code is like this :

....

while(<>){

$data = $data . $_ ;

}

...



This works fine on apache but on tomcat 6.0 this is getting hanged.

What is the issue?



Thanks in advance

Harsh


wickedxter
User

Aug 7, 2012, 12:30 PM


Views: 1436
Re: [hp51185] while loop with diamond operator

Tomcat implements the Java Servlet and the JavaServer Pages (JSP) specifications from Oracle Corporation, and provides a "pure Java" HTTP web server environment for Java code to run.

Tomcat is not the same as the Apache web server, which is a C implementation of an HTTP web server;

this might answer that....