Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to debug and understand Perl Scripts?

Posted on 2011-03-25
6
Medium Priority
?
267 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 85

Assisted Solution

by:ozo
ozo earned 2000 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 85

Accepted Solution

by:
ozo earned 2000 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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 85

Assisted Solution

by:ozo
ozo earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month12 days, 16 hours left to enroll

972 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