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 lists and ivalue?

550


Which of these is a difference between Perl and C++ ?

560


How to concatenate strings with perl?

470


What is the purpose of goto expr statement?

466


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

499






What are the advantages of c over Perl?

522


What is the use of now constructor in perl?

520


Why should I use the -w argument with my Perl programs?

550


What are the two ways to get private values inside a subroutine?

446


How do I generate a list of all .html files in a directory?

526


What interface used in PERL to connect to database? How do you connect to database in Perl?

526


If EXPR is an arbitrary expression, what is the difference between $Foo::{EXPR} and *{"Foo::".EXPR}?

504


Write syntax to use grep function?

544


What are perl strings?

500


How can you replace the characters from a string and save the number of replacements?

502