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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perl Beginner 1

Status
Not open for further replies.

bhuninghake

Programmer
Mar 24, 2004
90
US
I write in asp using sql databases so perl is foreign to me, but this company has an autoresponder and I'm getting this error when I try to run the script:

Content-Type: text/html; charset=ISO-8859-1 Cannot connect to database.[17] [] "[Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied."

My question is whether theres a way to do a Response.Write and Response.End in Perl like I can asp so I can trace down the error and see what the code is trying to do.

Thanks in advance for any help.
 
Dude,

You're asking a batch of perl guys about SQL Server and ASP.
Perl is a Unix language that happens to have been ported to Windoze.
There may be an interface but you're gonna need to find it yourself cos I doubt anyone here knows the answer to your question.

Start at cos there are thousands of modules there, some of which may fit the bill.

If you do get an answer, post it here to help others.



Trojan.
 
Thanks for the response but I was asking neither a sql server question or an asp question and didn't mean for it to look that way. I simply wanted to stop a perl cgi script in process and tell me where it was at in the process. Guess I probably didn't state the question correctly or where anyone could understand what I was asking. Anyway, I have now found the answer to what I was asking. It was the print command you use in a perl script.
Thanks again and sorry for any confusion...
 
There you go! :)
I think it was a terminology issue.
If you want to know how to run a perl script to a point and stop it there are a number of ways.
You could simply put print statements at the stop point and add an "exit" statement there.
You could use the built in debug tool by running with the "-d" switch and adding a breakpoint and running up to that breakpoint.
If you were really feeling adventurous, you could put a sleep there with a massive delay and add a signal handler. Then when you pressed, say, ctrl-C the code would continue!

Lost of ideas for you.



Trojan.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top