Solved

-d in perl

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…

757 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

22 Experts available now in Live!

Get 1:1 Help Now