How do you debug a Perl scripting ( at the compile time
error or run
time error) in Unix environment ?

Answer Posted / kuldip singh behal

we can also use -c and -d switches to debug our perl scripts
ex:
perl -c sample.pl (for compilation errors)
perl -d sample.pl (for debugging the code line by line)

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of primary data structures in Perl and what do they mean?

947


What is goto statement in perl?

600


What is the use of -n and -p options?

675


What is the function of cgiwrap in cgi programming?

560


Can you add two arrays together?

597






How to close a file in perl?

580


What is the purpose of redo statement?

613


Explain '->' in perl?

588


Hi, I am a accountant. I am preparing a balance sheet but because of staff shortage and time pressures I cant complete it on time. There is lot of common data with last years which I need not retype and I can manage by editing last year’s balance sheet ? Is their any software on net where I can do this easily??

1835


You want to download the contents of a url with perl. How would you do that?

574


What does 'do' statement do in perl?

573


What can be done for efficient parameter passing in perl?

544


What is the importance of perl warnings? How do you turn them on?

643


Is perl compiler or interpreter?

620


what are prefix dereferencer and list them out?

708