Solved

-d in perl

Posted on 1997-08-23
2
208 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

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…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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)

808 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