Solved

How to debug and understand Perl Scripts?

Posted on 2011-03-25
6
241 Views
Last Modified: 2012-05-11
Hi Experts,

Please help me to understand debug perl scripts?

Thx
Dil.
0
Comment
Question by:dileepav
  • 3
  • 3
6 Comments
 
LVL 84

Assisted Solution

by:ozo
ozo earned 500 total points
ID: 35219863
perldoc perldebug
0
 

Author Comment

by:dileepav
ID: 35221735
Though I have 10+ year exoerience in I am a beginner in Oerl UNIX etc, My exp is with ASP, ASP.NET, SQL Server Oracle etc.

So could you please help me in understading what is perldoc & perldebug and how can i do this, do i need to install it in my machine?

THx
Dil.
0
 
LVL 84

Accepted Solution

by:
ozo earned 500 total points
ID: 35223900
Unix systems often come with Perl already installed, but if yours does not, you can read perldoc perldebug here:
http://perldoc.perl.org/5.8.8/perldebug.html
and you find a perl installation to download here:
http://www.perl.org/get.html
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:dileepav
ID: 35225731
I am supporting an application when I run the perl script from UNIX using putty, Some of the tasks are not happening and I wanted to know where it is stopping, and want to print the query as well as some message there to understand where this break down happened, how can I do that please help.

Thx
Dil.
0
 
LVL 84

Assisted Solution

by:ozo
ozo earned 500 total points
ID: 35227576
if you start the script with
perl -d script
it will run under the debugger
0
 

Author Closing Comment

by:dileepav
ID: 35389889
Thx Experts
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

708 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

13 Experts available now in Live!

Get 1:1 Help Now