View Full Version : Hanging Perl Scripts
MagicBobert
03-10-2003, 11:43 PM
What is most usually the cause for having a CGI script hang?
It's impossible to debug because I don't know where it's hanging since it doesn't print any errors to the error log. In fact, it crashes Apache every time I run it on my local machine. It was working fine a few days ago.
Any ideas on common places Perl scripts hang or where to go from here?
Thanks in advance!
StevenCoutts
03-12-2003, 05:10 AM
Hi Magic,
#1 Missing \ in front of special char. like " $ @ etc...
#2 Missing { or }
#3 @ in print qq~ areas
Do you now how to use telnet to trouble shoot perl files?
Use telnet or SSH telnet (safer) to log into your server, get into your directory where your perl file is and type:
perl yourperlfilename.pl
it will show you line numbers and error messages so you can fix.
:thumbsup:
Hope this helps,
Steven
MagicBobert
03-12-2003, 11:55 PM
Right now I'm just testing it on my home machine running XP Home, Apache server, and ActivePerl.
Is there anyway to telnet to myself? Would that allow me to run it line by line like you describe?
Perhaps telnetting to the loopback address (127.0.0.1) using HyperTerminal or something along those lines?
Thanks!
mellin
03-13-2003, 09:02 AM
Why don't you just shoot up "cmd" (commandshell) in XP, and locate the directory where the scripts is, and type "perl -cw whateverfile.pl"?
As you said, you use localhost-server right?
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.