Operating System - Linux
1753524 Members
5375 Online
108795 Solutions
New Discussion юеВ

Re: How to understand this perl script

 
SOLVED
Go to solution
Allanm
Super Advisor

How to understand this perl script


Please suggest on how to understand this Big Perl script. I am not very comfortable working in Perl and need a sh -x like output while executing this script and understand what the script is doing, also this script is referring to few of the config files while it is executing and need to find which are those and how are they being utilized.

Please explain in a layman-like manner.

On an another note - I would like to execute this script through a browser and find out which parts of the application are up or down.Green color for up and red for down.

Thanks to all the nice Samaritans.
2 REPLIES 2
Allanm
Super Advisor

Re: How to understand this perl script

Please help !
James R. Ferguson
Acclaimed Contributor
Solution

Re: How to understand this perl script

Hi:

There isn't a good (easy) complement to the shell's '-x' trace in Perl short of the Perl debugger which isn't what you want. The script, has, however a debug option in the form of '-d' builtin. I suggest that you run the script using that.

Regards!

...JRF...