Solved

How to debug and understand Perl Scripts?

Posted on 2011-03-25
6
257 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

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

It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

752 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