Solved

-d in perl

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Ever wondered how to display how many visitors you have online. In this tutorial I will show you an easy but effective way to display the number of online visitors in WhizBase. In this article I assume you have read my previous articles and know …
This article will show, step by step, how to integrate R code into a R Sweave document
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…
The viewer will learn how to count occurrences of each item in an array.

829 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