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!

Hi! I am new to perl programming. A

Status
Not open for further replies.

TTMTech

Programmer
Feb 5, 2003
29
US
Hi! I am new to perl programming. Any one help me, How to debug perlscript ,CGI and html(eg.index.pl) on web page.

Thanks
 
Some things you should always do during testing is use strict, use warnings and print fatals to browser.

I don't like web debugging, the server never gives you what you're hoping for. If you can, install ActivePerl (it's free) onto your system (unless you're on *nix) and run scripts from CMD.

Hope this helps.

sulfericacid "Age is nothing more than an inaccurate number bestowed upon each of us at birth as just another means for others to judge and classify us- sulfericacid
 
Hi ! Sulfericacid

I have install ActivePerl (it's free) onto my system (I am using windows2000).My perl script is having database information can you please tell me it will work on cmd ? How i should use it ?

Thanks,

 
You're welcome TTMTeach. If you are using a database, pending on what you're using (like MySQL) you will need to install that and any other perl modules that you're using.

That's the only downside to testing on your own system; you need to set it up like a web server with all the extras. Once you install the database, you just run it as you normally would. You may have to change the path for the DB, but the syntax is the same.

To run a perl script, type "perl test.pl" in CMD (minus quotes).

Hope this helps.

sulfericacid "Age is nothing more than an inaccurate number bestowed upon each of us at birth as just another means for others to judge and classify us- sulfericacid
 
Hi ! Sulfericacid

Thanks for detail information.

Ramesh
 
you might want to look at the faqs in the CGI forum.... faq452-653
'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
you're welcome, have fun!

sulfericacid "Age is nothing more than an inaccurate number bestowed upon each of us at birth as just another means for others to judge and classify us- sulfericacid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top