Solved

-d in perl

Posted on 1997-08-23
2
207 Views
Last Modified: 2013-12-25
Could someone show me how you'd use the "-d" perl command within an actual cgi script?  I need to debug scripts and am not sure how exactly the -d command opperates.  Any help would be great!
0
Comment
Question by:idadan
2 Comments
 
LVL 2

Accepted Solution

by:
dmethvin earned 30 total points
ID: 1829843
You can't use the Perl debugger for debugging CGI scripts while they're being called from a web server.  The cgi.pm module supports being called with CGI-like arguments from a command line, so you can do a lot of debugging with that before you go with real CGI.  Also, be sure to turn on warnings with -w (or $^W = 1) and "use strict".

0
 

Author Comment

by:idadan
ID: 1829844
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will aim to show you how simple is making a small application in WhizBase, how to add, remove and update data in the DB. I will make a small address book application where you can add, browse, update and remove addresses. I wi…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now