some basic perl questions
Posted on 2004-04-11
I am working on a code created by someone else in perl.
Since I am new to perl, I coudln't understand few things
in the program(though the program works perfectly)
1) For every function being called in the program the first print statement is
repeated twice , but in the output only one of the statement is printed. I tried
to remove one of the print statement, but the other print statement also doesn't
print, looks strange and weard, but I dont understand the reasoning behind it.
2) The program is called from the web url like
It works perfectly when given input from the url, but when I tried
to execute it from Unix prompt by calling
perl program.pl input1=something&input2=something&input3=something
except for the first input rest are not assigned. Since I am new
to perl I believe it could be because of the param function being used.
like the function calls a CGI at first
$a = new CGI;
I assume that the program supports only input throught URL(CGI mode) or
I am giving in the inputformat in a wrong way.
3) When the program is called it executed properly, but the IE screen is blank, in
order to view the output I have to look into view source, which has the proper output.
Is there a way to print the output on screen itself, I mean on the Internet Explorer.