Solved

-d in perl

Posted on 1997-08-23
2
210 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Control Number of Log Files -Perl 7 94
Need help Creating a Powershell script 8 56
Find unused columns in a table 12 70
[switch] $NoInheritance - Powershell Code 5 18
In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

749 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