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
explain the various functions/directives in perl that allow you to include/import a module. Also, state the differences between them.
Explain the meaning of perl one-liner?
What is the use of strict?
what is the difference between java and cgi?
What is the difference between die and exit in perl?
Give an example of the -i and 0s option usage.
What value is returned by a lone `return;’ statement?
Write syntax to use grep function?
What is the syntax used in Perl grep function?
How do I sort a hash by the hash key?
What is the use of -n and -p options?
List the files in current directory sorted by size ?
How will you create a file in perl?
What does localtime() do in perl?
What is q (single q) operator in perl?