Solved

How to debug and understand Perl Scripts?

Posted on 2011-03-25
6
245 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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 the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

911 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

22 Experts available now in Live!

Get 1:1 Help Now