Solved

How to debug and understand Perl Scripts?

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

Please help me to understand debug perl scripts?

Thx
Dil.
0
Comment
Question by:dileepav
[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
  • 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

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

Independent Software Vendors: 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

I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

623 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