Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl from Unix to Win98

Status
Not open for further replies.

OOzy

Programmer
Jul 24, 2000
135
SA
<br>I have a script that works perfect on unix. I want to make some changes and I want to do in Win98 using active perl. I tried to run the script but I get nothing except<br><br>content type text/html when I type perl myscript.pl. As far as the browser goes, nothing comes up on the screen.<br><br>Can you help
 
Might help a bit to see the script or know what its supposed to print. &quot;content type text/html&quot; is the usual start of web page, which'd mean the script hasn't any typos or missing modules but whatever its supposed to do next doesn't return output. The browser (look at the source view) is correct for this output.<br><br>Next step is to stick a bunch of prints in there and see where you're failing.<br>if you do:<br><FONT FACE=monospace>my $debug = 10;</font><br>and then<br><FONT FACE=monospace><br>print &quot;Just did foo\n&quot; if $debug &gt; 5;<br>print &quot;attempting bar: val1: $val1, val2: $val2\n&quot; if $debug &gt; 7;<br></font><br>sort of debugging statements, you can leave them in as you get it to work and choose your level of debugging info to see for any particular run.<br><br>Good luck.<br><br>a
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top