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

explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.

463


Explain the meaning of perl one-liner?

514


What is the use of strict?

546


what is the difference between java and cgi?

563


What is the difference between die and exit in perl?

573






Give an example of the -i and 0s option usage.

476


What value is returned by a lone `return;’ statement?

568


Write syntax to use grep function?

550


What is the syntax used in Perl grep function?

595


How do I sort a hash by the hash key?

571


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

604


List the files in current directory sorted by size ?

526


How will you create a file in perl?

525


What does localtime() do in perl?

569


What is q (single q) operator in perl?

536